Skip to content

hhamud/noir-ts-mode

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

noir-ts-mode

MELPA MELPA Stable

An Emacs tree-sitter mode for the Noir Language.

Installation

  1. Make sure you have Emacs version 29.x and above.

  2. Add the grammar to your settings as so:

(add-to-list
 'treesit-language-source-alist
 '(noir "https://github.com/hhamud/tree-sitter-noir" "main" "src"))
  1. Install the grammar
M-x treesit-install-language-grammar RET noir RET
  1. Check if it has installed successfully
(treesit-language-available-p 'noir)
  1. Download noir-ts-mode.el from the GitHub repository.

  2. Move noir-ts-mode.el to a directory in your Emacs load path.

  3. Add the following code to your Emacs configuration file:

(require 'noir-ts-mode)

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.

Testing

Run the ERT suite in batch Emacs with:

emacs --batch -Q -L . -L test -l test/noir-ts-mode-tests.el -f noir-ts-mode-test-run

Contributing

Contributions to noir-ts-mode 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.

About

An Emacs tree-sitter mode for the Noir Language.

Topics

Resources

License

Stars

Watchers

Forks

Contributors