~amk/hare-ts-mode

hare tree sitter mode for emacs
fix struct offset
fix call expr offset
fix some indents, fontify types more specifically than (type)

refs

master
browse  log 

clone

read-only
https://git.sr.ht/~amk/hare-ts-mode
read/write
git@git.sr.ht:~amk/hare-ts-mode

You can also use your local clone with git send-email.

#Hare Tree-Sitter Mode

hare-ts-mode provides indentation and syntax highlighting for the Hare programming language

It requires emacs 29 and the tree-sitter grammar here: https://git.d2evs.net/~ecs/tree-sitter-hare

#Detailed installation instructions

Install the tree-sitter-hare grammar by setting treesit-language-source-alist:

(setq treesit-language-source-alist
   '((hare https://git.d2evs.net/~ecs/tree-sitter-hare)))

Then install the grammar using M-x treesit-install-language-grammar RET hare.

#Installing hare-ts-mode

Clone the repo to a place in your load path and require it like usual.

You should now be able to use hare-ts-mode!

Optionally configure the mode name (very important):

(use-package hare-ts-mode
  :hook (hare-ts-mode . (lambda () (setq-local mode-name "🐇"))))

#Contributing

Patches can be sent either to the sr.ht mailing list: ~amk/public-inbox@lists.sr.ht or a pull request can be sent to the codeberg repository: codeberg.org/amk/hare-ts-mode