lezer-parser/lezer

Potentially missing grammar for javascript tokenizer (Symbol.iterator)

kdog3682 opened this issue · 1 comments

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.

Attached patch should fix this.