mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-15 01:40:02 -04:00
chore: query formatting
This commit is contained in:
parent
79975d6557
commit
57a8acf0c4
674 changed files with 18466 additions and 12648 deletions
|
|
@ -8,7 +8,9 @@
|
|||
(preprocessor_constant) @constant.macro
|
||||
|
||||
(number) @number
|
||||
|
||||
(string) @string
|
||||
|
||||
(escape_sequence) @string.escape
|
||||
|
||||
[
|
||||
|
|
@ -35,10 +37,8 @@
|
|||
function: (identifier) @function.call)
|
||||
|
||||
((call_expression
|
||||
function: (identifier) @function.builtin)
|
||||
(#any-of? @function.builtin
|
||||
"print" "printd" "printdln" "printf" "println"
|
||||
"sprint" "sprintd" "sprintdln" "sprintf" "sprintln"))
|
||||
function: (identifier) @function.builtin)
|
||||
(#any-of? @function.builtin "print" "printd" "printdln" "printf" "println" "sprint" "sprintd" "sprintdln" "sprintf" "sprintln"))
|
||||
|
||||
((identifier) @variable.builtin
|
||||
(#lua-match? @variable.builtin "^\$+[0-9A-Z_a-z]+\$*$"))
|
||||
|
|
@ -117,7 +117,9 @@
|
|||
] @keyword
|
||||
|
||||
"function" @keyword.function
|
||||
|
||||
"in" @keyword.operator
|
||||
|
||||
"return" @keyword.return
|
||||
|
||||
[
|
||||
|
|
@ -150,4 +152,5 @@
|
|||
"@define" @keyword.directive.define
|
||||
|
||||
"private" @type.qualifier
|
||||
|
||||
"global" @keyword.storage
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
((comment) @injection.content
|
||||
(#set! injection.language "comment"))
|
||||
(#set! injection.language "comment"))
|
||||
|
||||
((embedded_code) @injection.content
|
||||
(#set! injection.language "c"))
|
||||
(#set! injection.language "c"))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue