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

[Bug] CMake keywords as substrings in larger text still highlighted #204

Open
iahung2 opened this issue Mar 22, 2024 · 1 comment
Open
Assignees
Labels
enhancement New feature or request syntax highlight

Comments

@iahung2
Copy link

iahung2 commented Mar 22, 2024

For example, keyword EXPR and TYPE in https://github.com/AdeptLanguage/Adept/blob/master/CMakeLists.txt

p/s: Is it a solvable problem? Github's syntax highlighter suffered the same problem.

@SpartanJ
Copy link
Owner

With pattern-based highlighters is really tricky to solve it. Depends basically on the case. For this particular case I don't see any quick fix for the moment. It seems that it's tricky to parse CMake since I found highlighting errors using that file on all editors (but not all with this same issue). Some do a nice job, Kate seems to do the best job and it's pattern based, so it's possible (lang definition here).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request syntax highlight
Projects
None yet
Development

No branches or pull requests

2 participants