Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/SethBarberee/tree-sitter-asm

ARM/Thumb Assembly parser for treesitter (WIP)
https://github.com/SethBarberee/tree-sitter-asm

tree-sitter tree-sitter-asm tree-sitter-parser

Last synced: 21 days ago
JSON representation

ARM/Thumb Assembly parser for treesitter (WIP)

Awesome Lists containing this project

README

        

# tree-sitter-asm
The start of a ARM/Thumb ASM tree-sitter parser. This isn't fully complete yet so there may be some bugs. PRs accepted.

## Installation

1) Add the following snippet to your init.lua:
```
local parser_config = require "nvim-treesitter.parsers".get_parser_configs()
parser_config.arm = {
install_info = {
url = ,
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
}
```
2) Run `TSInstallFromGrammar arm`

3) Copy `queries/highlights.scm` to `/queries/after/arm/highlights.scm` (Optional, if you want the highlighting)