Open JonathanWilkins1 opened 2 weeks ago
Gave it a look but no luck tmLanguage files are like fine art, still considering a switch to tree sitter colouring
This potentially might be fix. This is very lightly tested.
I found that adding ":" next to the use of the ?.
operator fixed the parsing which lead me to looking at the ternary parser.
These are changes to the syntaxes/cfml.tmLanguage.json
file
Testing:
Before:
After:
I can push a PR with the change
Negative look ahead? Looks good. Yes please submit a PR
I noticed twice now that whenever I use the optional chaining operator, the syntax highlighting turns all the JS code (inside a script tag) blue. It eventually fixes itself after a bunch more lines of code, but I’m not sure what exactly causes it to fix itself. Attached is a screenshot of where the messed up syntax highlighting starts after using ?.