1.0.1 • Published 2 years ago

tree-sitter-noir v1.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

Tree-sitter Noir

test npm

Noir grammar and parser for tree-sitter

Emacs

  1. Make sure you have Emacs version 29.x and above.
  1. Add the grammar to your settings as so:
(add-to-list
 'treesit-language-source-alist
 '(noir "https://github.com/hhamud/tree-sitter-noir.git"))
  1. Install the grammar
M-x treesit-install-language-grammar 
  1. Check if it has installed successfully
(treesit-language-available-p 'noir)
  1. Download noir-ts-mode.el from the GitHub repository.
  1. Move noir-mode.el to a directory in your Emacs load path.
  1. Add the following code to your Emacs configuration file:
(require noir-ts-mode)

Other

To install the grammar

npm i tree-sitter-noir

Usage

Once noir-ts-mode.el is installed, it will automatically be enabled when you open a .nr file. The major mode will provide syntax highlighting for editing Noir code.

Examples

You can view a few examples of the syntax highlighting and of treesit-explore-mode using noir-ts-mode.el in images.

References

Contributing

Contributions to tree-sitter-noir are welcome. If you find any issues or have suggestions for improvement, please create a new issue or submit a pull request on the GitHub repository.

1.0.1

2 years ago

1.0.0

2 years ago