mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-21 04:40:08 -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
|
|
@ -210,6 +210,7 @@ We are looking for maintainers to add more parsers and to write query files for
|
||||||
- [x] [devicetree](https://github.com/joelspadin/tree-sitter-devicetree) (maintained by @jedrzejboczar)
|
- [x] [devicetree](https://github.com/joelspadin/tree-sitter-devicetree) (maintained by @jedrzejboczar)
|
||||||
- [x] [dhall](https://github.com/jbellerb/tree-sitter-dhall) (maintained by @amaanq)
|
- [x] [dhall](https://github.com/jbellerb/tree-sitter-dhall) (maintained by @amaanq)
|
||||||
- [x] [diff](https://github.com/the-mikedavis/tree-sitter-diff) (maintained by @gbprod)
|
- [x] [diff](https://github.com/the-mikedavis/tree-sitter-diff) (maintained by @gbprod)
|
||||||
|
- [x] [disassembly](https://github.com/ColinKennedy/tree-sitter-disassembly) (maintained by @ColinKennedy)
|
||||||
- [x] [dockerfile](https://github.com/camdencheek/tree-sitter-dockerfile) (maintained by @camdencheek)
|
- [x] [dockerfile](https://github.com/camdencheek/tree-sitter-dockerfile) (maintained by @camdencheek)
|
||||||
- [x] [dot](https://github.com/rydesun/tree-sitter-dot) (maintained by @rydesun)
|
- [x] [dot](https://github.com/rydesun/tree-sitter-dot) (maintained by @rydesun)
|
||||||
- [x] [doxygen](https://github.com/amaanq/tree-sitter-doxygen) (maintained by @amaanq)
|
- [x] [doxygen](https://github.com/amaanq/tree-sitter-doxygen) (maintained by @amaanq)
|
||||||
|
|
|
||||||
|
|
@ -110,6 +110,9 @@
|
||||||
"diff": {
|
"diff": {
|
||||||
"revision": "c165725c28e69b36c5799ff0e458713a844f1aaf"
|
"revision": "c165725c28e69b36c5799ff0e458713a844f1aaf"
|
||||||
},
|
},
|
||||||
|
"disassembly": {
|
||||||
|
"revision": "e48ebe20581145b381204cf21adf305e29329b5d"
|
||||||
|
},
|
||||||
"dockerfile": {
|
"dockerfile": {
|
||||||
"revision": "33e22c33bcdbfc33d42806ee84cfd0b1248cc392"
|
"revision": "33e22c33bcdbfc33d42806ee84cfd0b1248cc392"
|
||||||
},
|
},
|
||||||
|
|
|
||||||
|
|
@ -388,6 +388,14 @@ list.diff = {
|
||||||
maintainers = { "@gbprod" },
|
maintainers = { "@gbprod" },
|
||||||
}
|
}
|
||||||
|
|
||||||
|
list.disassembly = {
|
||||||
|
install_info = {
|
||||||
|
url = "https://github.com/ColinKennedy/tree-sitter-disassembly",
|
||||||
|
files = { "src/parser.c", "src/scanner.c" },
|
||||||
|
},
|
||||||
|
maintainers = { "@ColinKennedy" },
|
||||||
|
}
|
||||||
|
|
||||||
list.dockerfile = {
|
list.dockerfile = {
|
||||||
install_info = {
|
install_info = {
|
||||||
url = "https://github.com/camdencheek/tree-sitter-dockerfile",
|
url = "https://github.com/camdencheek/tree-sitter-dockerfile",
|
||||||
|
|
|
||||||
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