Skip to content

A tree-sitter grammar for nu-lang, the language of nushell

License

Notifications You must be signed in to change notification settings

nushell/tree-sitter-nu

Repository files navigation

tree-sitter nu

[WIP] nushell grammar for tree-sitter

issues

  1. unquoted strings

treesitter-nu.readme.1.png

  1. blocks vs records since we cannot backtrack, it is difficult to tell apart blocks and records. so currently, blocks are not parsed as values

treesitter-nu.readme.2.png

  1. cellpaths with numbers

treesitter-nu.readme.3.png

  1. command arguments are parsed as strings

treesitter-nu.readme.4.png

here 2, -f, arg will all be parsed as strings

installation guide