Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

enh(sqf) improve function name highlighting (slightly broader) #3181

Merged
merged 8 commits into from May 10, 2021
Merged

enh(sqf) improve function name highlighting (slightly broader) #3181

merged 8 commits into from May 10, 2021

Conversation

JonBons
Copy link
Contributor

@JonBons JonBons commented May 7, 2021

I've tweaked the function matching regex for the sqf language so that it can match functions with the myTag_component_fnc_initVehicle naming convention which is common with popular mods for arma, CBA, ACE, etc.

Changes

Changed regex for sqf functions to \w+_fnc_\w+ which matches the whole word now instead of just one section.

Checklist

  • Updated markup tests,
  • Updated the changelog at CHANGES.md

@JonBons
Copy link
Contributor Author

JonBons commented May 7, 2021

I have not updated the changelog yet as I did not see a Version next or whatever to place it under and I don't want to cause a merge conflict. Where should I place it?

@joshgoebel
Copy link
Member

Thanks!

The topmost section is the v11 stuff it would go there, at the bottom of that section with all the other grammar improvements.

src/languages/sqf.js Outdated Show resolved Hide resolved
CHANGES.md Show resolved Hide resolved
@joshgoebel joshgoebel changed the title enh(sqf) tweak function highlighting regex enh(sqf) improve function name highlighting (slightly broader) May 10, 2021
@joshgoebel joshgoebel merged commit ba35648 into highlightjs:main May 10, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants