mirror of
https://github.com/nvim-treesitter/nvim-treesitter
synced 2024-09-16 14:34:05 +02:00
feat(asm): update queries from upstream (#6505)
adds support for TC assembly
This commit is contained in:
parent
e245f09197
commit
876111c8df
1 changed files with 14 additions and 1 deletions
|
@ -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
|
||||
|
||||
[
|
||||
|
|
Loading…
Reference in a new issue