You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I investigated why, and it's caused by the multi-line comment highlighter running before single line comments are detected. It causes the '/*' in '//*this' above to be interpreted as the start of a multi-line comment. While it should be ignored as it's part of a single line comment. A possible solution would be to detect single line comments together with multi-line ones.
Perhaps eventually to make (multi-line) comments work well across different languages we'll need a separate comment highlighter for each language.
The text was updated successfully, but these errors were encountered:
marcel303
changed the title
Multi-line comment detected within single line comment.
Multi-line comment detected within single line comment (c++).
Oct 18, 2018
…ding \ handling.
Better preprocessor coloring: it will use interpolated value between the preprocessor color and the token color, so strings, preprocessor identifiers, numbers, etc. are still distinguishable.
Hi,
The following code has incorrect syntax highlighting. One can verify this by copy-pasting it into the editor.
I investigated why, and it's caused by the multi-line comment highlighter running before single line comments are detected. It causes the '/*' in '//*this' above to be interpreted as the start of a multi-line comment. While it should be ignored as it's part of a single line comment. A possible solution would be to detect single line comments together with multi-line ones.
Perhaps eventually to make (multi-line) comments work well across different languages we'll need a separate comment highlighter for each language.
The text was updated successfully, but these errors were encountered: