Working on porting a theme to CodeMirror 6 (left) from CodeMirror 5 (right).
It’s mostly translated well, but there’s a few pain points in JavaScript that I haven’t found out the right way to target. Using my debug theme, I can quickly inspect how some of the items are being tagged, but I know there’s some that overlap.
The main items I’m struggling to target:
1. The braces around variables in template literals:
2. The =>
in function definitions
Shows as tags.punctuation
but we don’t want to style all punctuation as green. The =>
seems like more of an operator or definition, but neither of those work for targeting. tags.definition(tags.punctuation)
3. The keyword super
in class
Doesn’t appear to have any tag associated with it at all.
Am I missing anything with how to target these? Are there certain pieces missing in the JS Language data?