The start of a ARM/Thumb ASM tree-sitter parser. This isn't fully complete yet so there may be some bugs. PRs accepted.
- Add the following snippet to your init.lua:
local parser_config = require "nvim-treesitter.parsers".get_parser_configs()
parser_config.arm = {
install_info = {
url = <PATH to REPO>,
files = {"src/parser.c"},
-- optional entries:
generate_requires_npm = false, -- if stand-alone parser without npm dependencies
requires_generate_from_grammar = false, -- if folder contains pre-generated src/parser.c
},
filetype = "arm", -- if filetype does not match the parser name
}
-
Run
TSInstallFromGrammar arm
-
Copy
queries/highlights.scm
to<path to nvim>/queries/after/arm/highlights.scm
(Optional, if you want the highlighting)