This is a tree-sitter and highlights for the Jasmin language
To register a new tree-sitter parser, simply add something like
local parser_config = require('nvim-treesitter.parsers').get_parser_configs()
parser_config.jasmin = {
install_info = {
url = 'https://github.com/y4cer/tree-sitter-jasmin',
files = { 'src/parser.c' },
generate_requires_npm = false,
requires_generate_from_grammar = false,
},
filetype = 'jazz',
}
vim.filetype.add {
extension = {
jazz = 'jazz',
},
}
I haven't yet added the language support to the tree-sitter repository, so to
use the highlights, you can add the queries/highlights.scm
file to the NVIM
runtime path to queries/jasmin/highlights.scm
.
The MIT License (MIT) Copyright (c) 2024 y4cer