New TypeScript "using" keyword is not highlighted by parser
tmcw opened this issue · comments
Tom MacWright commented
I can see that this support was added in 568d51c
However, it doesn't seem to trickle down through to an actual editor - using
└─┬ @codemirror/lang-javascript@6.1.9
└── @lezer/javascript@1.4.7
"let" and "const" are properly highlighted, but "using" is not:
I'm not sure why - possibly because this is a contextual keyword?
Marijn Haverbeke commented
I added it to the grammar but forgot to attach highlighting information to the token. Attached patch does that.
Benedikt Meurer commented
@marijnh can you tag a new release with this fix please?
Marijn Haverbeke commented
Done!