mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-19 20:00:07 -04:00
feat: add tree-sitter-disassembly
This commit is contained in:
parent
2c1eb02e92
commit
4362b04a29
5 changed files with 36 additions and 0 deletions
18
queries/disassembly/highlights.scm
Normal file
18
queries/disassembly/highlights.scm
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
(byte) @constant
|
||||
|
||||
[
|
||||
(address)
|
||||
(hexadecimal)
|
||||
(integer)
|
||||
] @number
|
||||
|
||||
(identifier) @variable
|
||||
|
||||
(bad_instruction) @text.warning
|
||||
(code_location (identifier) @function.call)
|
||||
(comment) @comment
|
||||
(instruction) @function
|
||||
(memory_dump) @string
|
||||
|
||||
["<" ">"] @punctuation.special
|
||||
["+" ":"] @punctuation.delimiter
|
||||
6
queries/disassembly/injections.scm
Normal file
6
queries/disassembly/injections.scm
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
; TODO: https://github.com/nvim-treesitter/nvim-treesitter/pull/5548#issuecomment-1773707396
|
||||
;
|
||||
; To be added once a compatible Assembly parser is merged into nvim-treesitter
|
||||
;
|
||||
; ((instruction) @injection.content
|
||||
; (#set! injection.language "asm"))
|
||||
Loading…
Add table
Add a link
Reference in a new issue