Wonky syntax highlighting when escaping delim-pair characters or inputting some contextually non-delim-pair characters in strings. #165
Labels
bug
Something isn't working
good first issue
Good for newcomers
grammar
TextMate grammar/language configuration
help wanted
Extra attention is needed
Describe the bug
Syntax highlighting displays the wrong colors when escaping some characters that require it, in strings and also when not closing delim-pairs in a context where that isn't necessary for syntax compliance. Compiling and running the code works just fine, it's only the coloring. It becomes confusing and the colors-errors cascade downward as well until pairs are 'closed' inside a comment (not always feasible).
To Reproduce
Escape a " (i.e. "\"") and succeeding text becomes orange (or whatever the theme has set for strings). Put a { in a string ("{") and the same happens except in block-comment-color. ";" does not have this problem. Now compile.
The text was updated successfully, but these errors were encountered: