-
-
Notifications
You must be signed in to change notification settings - Fork 1k
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
🐞 C++ Syntax highlighting: Different colors for same keyword #1378
Comments
Moving to CETV for further investigation |
This is happening due to the fact that CE primarily uses the filename to detect which language the file is. Because this is a A fix for this would be to add a way to override filetypes for detection using a setting like this. I'm going to move this to CE again (sorry) because that setting should be implemented there. |
Hi there. I have been looking into this issue, and would like to work on it. If there has been any update on anything regarding it, please let me know. Regarding the suggestion for language identifiers like VSCode, do you have any ideas @thecoolwinter on how exactly you want that implemented? I've looked through the code a little and see how it might play into the existing FileType enum and CodeLanguage struct. If there are any more details or ideas that you may have thought about, please let me know as I begin to work this out. |
Description
When opening the attached header file, syntax highlighting fails on many occasions of the keyword
double
. The color switches between bright and dark blue.Download source file
Pastebin: Show file CPoint.h
To Reproduce
Expected Behavior
Correct syntax highlighting.
Version Information
CodeEdit: 0.0.3-alpha (32)
macOS: 13.4
Xcode: 14.3.1
Additional Context
No response
Screenshots
The text was updated successfully, but these errors were encountered: