r-lib/tree-sitter-r

"..i" node name gives problems with tree-sitter-node

rien opened this issue · 2 comments

rien commented

The ..i token defined here:

"..i": $ => token(/[.][.]\d+/),

Causes an error when this parser is loaded in tree-sitter-node, because it creates a class for each syntax node and a dot (.) is illegal in a class name.

Is it possible to use a different name (without special characters) for this token?

Thanks; I think that's reasonable. Just need to figure out a good name...

rien commented

How about argument_reference? I'll draft a PR later today.