fix struct offset
fix call expr offset
fix some indents, fontify types more specifically than (type)
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
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
.
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 "🐇"))))
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