feat(asm): update queries from upstream (#6505)

adds support for TC assembly
This commit is contained in:
Silas Groh 2024-04-25 14:49:58 +08:00 committed by GitHub
parent e245f09197
commit 876111c8df
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1,6 +1,9 @@
; General ; General
(label (label
(ident) @label) [
(ident)
(word)
] @label)
(reg) @variable.builtin (reg) @variable.builtin
@ -10,6 +13,9 @@
(instruction (instruction
kind: (_) @function.builtin) kind: (_) @function.builtin)
(const
name: (word) @constant)
; Comments ; Comments
[ [
(line_comment) (line_comment)
@ -31,6 +37,8 @@
"qword" "qword"
"ptr" "ptr"
"rel" "rel"
"label"
"const"
] @keyword ] @keyword
; Operators & Punctuation ; Operators & Punctuation
@ -38,6 +46,11 @@
"+" "+"
"-" "-"
"*" "*"
"/"
"%"
"|"
"^"
"&"
] @operator ] @operator
[ [