mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-09 15:00:04 -04:00
feat: add objdump to the supported languages (#5548)
This commit is contained in:
parent
07dbb3845c
commit
0179a89656
5 changed files with 53 additions and 0 deletions
35
queries/objdump/highlights.scm
Normal file
35
queries/objdump/highlights.scm
Normal file
|
|
@ -0,0 +1,35 @@
|
|||
(byte) @constant
|
||||
|
||||
[
|
||||
(hexadecimal)
|
||||
(integer)
|
||||
(address)
|
||||
] @number
|
||||
|
||||
[
|
||||
"file" "format"
|
||||
"File" "Offset:"
|
||||
"discriminator"
|
||||
] @text
|
||||
"Disassembly of section " @text.title
|
||||
|
||||
(section_address) @number @text.underline
|
||||
|
||||
(identifier) @variable
|
||||
(code_location (identifier) @function.call)
|
||||
(header (identifier) @keyword)
|
||||
(disassembly_section_label (identifier) @namespace)
|
||||
(disassembly_section (identifier) @namespace)
|
||||
|
||||
[(file_offset) (discriminator)] @field
|
||||
|
||||
(file_path) @string
|
||||
(instruction) @function
|
||||
(bad_instruction) @text.warning
|
||||
(label) @label
|
||||
|
||||
["<" ">"] @punctuation.special
|
||||
["(" ")"] @punctuation.bracket
|
||||
["+" ":"] @punctuation.delimiter
|
||||
|
||||
(comment) @comment.documentation
|
||||
6
queries/objdump/injections.scm
Normal file
6
queries/objdump/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