aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSilas Groh <silas.groh@t-online.de>2024-04-25 14:49:58 +0800
committerGitHub <noreply@github.com>2024-04-25 08:49:58 +0200
commit876111c8df409a6ad17ba1ff6e1a90bac22b4a42 (patch)
tree492e20bb63ea916f8f5fba002075353634335f25
parentbot(lockfile): update asm, djot, mlir, unison, vhs (diff)
downloadnvim-treesitter-876111c8df409a6ad17ba1ff6e1a90bac22b4a42.tar
nvim-treesitter-876111c8df409a6ad17ba1ff6e1a90bac22b4a42.tar.gz
nvim-treesitter-876111c8df409a6ad17ba1ff6e1a90bac22b4a42.tar.bz2
nvim-treesitter-876111c8df409a6ad17ba1ff6e1a90bac22b4a42.tar.lz
nvim-treesitter-876111c8df409a6ad17ba1ff6e1a90bac22b4a42.tar.xz
nvim-treesitter-876111c8df409a6ad17ba1ff6e1a90bac22b4a42.tar.zst
nvim-treesitter-876111c8df409a6ad17ba1ff6e1a90bac22b4a42.zip
feat(asm): update queries from upstream (#6505)
adds support for TC assembly
-rw-r--r--queries/asm/highlights.scm15
1 files changed, 14 insertions, 1 deletions
diff --git a/queries/asm/highlights.scm b/queries/asm/highlights.scm
index 341205235..eccf9c996 100644
--- a/queries/asm/highlights.scm
+++ b/queries/asm/highlights.scm
@@ -1,6 +1,9 @@
; General
(label
- (ident) @label)
+ [
+ (ident)
+ (word)
+ ] @label)
(reg) @variable.builtin
@@ -10,6 +13,9 @@
(instruction
kind: (_) @function.builtin)
+(const
+ name: (word) @constant)
+
; Comments
[
(line_comment)
@@ -31,6 +37,8 @@
"qword"
"ptr"
"rel"
+ "label"
+ "const"
] @keyword
; Operators & Punctuation
@@ -38,6 +46,11 @@
"+"
"-"
"*"
+ "/"
+ "%"
+ "|"
+ "^"
+ "&"
] @operator
[