Major mode for Blueprint (https://jwestman.pages.gitlab.gnome.org/blueprint-compiler/) based on Treesitter.
You need Emacs version >= 29. Your Emacs also needs to be compiled with Treesitter support (--with-tree-sitter
) which you can check with the variable system-configuration-options
.
Get the grammar:
(add-to-list 'treesit-language-source-alist
'(blueprint . (https://github.com/huanie/tree-sitter-blueprint)))
(treesit-install-language-grammar 'blueprint)
Install blueprint-ts-mode
from NONGNU ELPA (not yet). package-install blueprint-ts-mode
.
- Font Lock
- Indentation
- Eglot integration
- Treesitter based navigation
These features still need improvement. Feedback and contributions are welcome!