nushell / tree-sitter-nu

A tree-sitter grammar for nu-lang, the language of nushell
MIT License
122 stars 27 forks source link

Fix several issues of identifiers #147

Closed blindFS closed 1 week ago

blindFS commented 1 week ago

This PR fixes most of the remaining issues related to identifiers as reported in #142 .

# values
null
7b
nan
# commands
g++
7z
7mss
truee

It's still not perfect, nushell handles special characters like -, #, ., () in identifiers very dynamically. I think this is the time to finally resort to an external scanner for further accuracy.

fdncred commented 1 week ago

Thanks