mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-17 02:40:09 -04: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
|
; 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
|
||||||
|
|
||||||
[
|
[
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue