Skip to content

SethBarberee/tree-sitter-asm

Folders and files

NameName
Last commit message
Last commit date
Nov 16, 2022
Sep 2, 2022
Feb 16, 2024
Feb 16, 2024
Feb 16, 2024
Sep 7, 2022
Sep 2, 2022
Dec 15, 2023
Feb 16, 2024
Sep 2, 2022
Feb 16, 2024
Sep 7, 2022
Sep 7, 2022

Repository files navigation

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 = <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
}
  1. Run TSInstallFromGrammar arm

  2. Copy queries/highlights.scm to <path to nvim>/queries/after/arm/highlights.scm (Optional, if you want the highlighting)