aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAmaan Qureshi <amaanq12@gmail.com>2024-01-24 19:35:31 -0500
committerPhạm Huy Hoàng <hoangtun0810@gmail.com>2024-01-25 10:00:01 +0900
commit1d83fc08d4711077501d91deb4f0b2ae528e8b34 (patch)
treea5ac22073383062b2e92f96280bd7b08f3488b1b
parentfeat: add tree-sitter-disassembly (diff)
downloadnvim-treesitter-1d83fc08d4711077501d91deb4f0b2ae528e8b34.tar
nvim-treesitter-1d83fc08d4711077501d91deb4f0b2ae528e8b34.tar.gz
nvim-treesitter-1d83fc08d4711077501d91deb4f0b2ae528e8b34.tar.bz2
nvim-treesitter-1d83fc08d4711077501d91deb4f0b2ae528e8b34.tar.lz
nvim-treesitter-1d83fc08d4711077501d91deb4f0b2ae528e8b34.tar.xz
nvim-treesitter-1d83fc08d4711077501d91deb4f0b2ae528e8b34.tar.zst
nvim-treesitter-1d83fc08d4711077501d91deb4f0b2ae528e8b34.zip
fix: format disassembly
-rw-r--r--queries/disassembly/highlights.scm20
1 files changed, 16 insertions, 4 deletions
diff --git a/queries/disassembly/highlights.scm b/queries/disassembly/highlights.scm
index 2a1e2cdf4..b1ece9ab6 100644
--- a/queries/disassembly/highlights.scm
+++ b/queries/disassembly/highlights.scm
@@ -8,11 +8,23 @@
(identifier) @variable
-(bad_instruction) @text.warning
-(code_location (identifier) @function.call)
+(bad_instruction) @comment.warning
+
+(code_location
+ (identifier) @function.call)
+
(comment) @comment
+
(instruction) @function
+
(memory_dump) @string
-["<" ">"] @punctuation.special
-["+" ":"] @punctuation.delimiter
+[
+ "<"
+ ">"
+] @punctuation.special
+
+[
+ "+"
+ ":"
+] @punctuation.delimiter