nushell / tree-sitter-nu

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

Treat shebangs as regular comments in the highlights query #17

Closed zioroboco closed 1 year ago

zioroboco commented 1 year ago

👋 😊

Shebang lines (#!/some/binary --etc) are a distinct type according to the grammar, but currently aren't included in the highlights query.

This change treats them as regular comments for the purpose of highlighting.

fdncred commented 1 year ago

Let's land this and circle-back later if we want to change the shebang coloring.