lezer-parser / javascript

A JavaScript lezer grammar

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

New TypeScript "using" keyword is not highlighted by parser

tmcw opened this issue · comments

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:

CleanShot 2023-09-22 at 10 08 29@2x

I'm not sure why - possibly because this is a contextual keyword?

I added it to the grammar but forgot to attach highlighting information to the token. Attached patch does that.

@marijnh can you tag a new release with this fix please?