feat: add objdump to the supported languages (#5548)

This commit is contained in:
Colin Kennedy 2023-10-22 02:05:20 -07:00 committed by GitHub
parent 07dbb3845c
commit 0179a89656
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 53 additions and 0 deletions

View 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

View 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"))