lezer-parser / lezer

Dev utils and issues for the Lezer core packages
33 stars 1 forks source link

Potentially missing grammar for javascript tokenizer (Symbol.iterator) #31

Closed kdog3682 closed 1 year ago

kdog3682 commented 1 year ago
class Foo {
    constructor() { /* works fine */ }
    method() { /* works fine */ }
    [Symbol.iterator]() { /* doesnt seem to work */ }
}

Maybe it is an error on my part, but when I am trying to tokenize the above code, it breaks down around the Symbol.iterator part.

marijnh commented 1 year ago

Attached patch should fix this.