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
|
|
@ -1,5 +1,4 @@
|
|||
; Namespaces
|
||||
|
||||
[
|
||||
"re2c"
|
||||
"re2c"
|
||||
|
|
@ -8,14 +7,12 @@
|
|||
] @module
|
||||
|
||||
; Includes
|
||||
|
||||
[
|
||||
"!use"
|
||||
"!include"
|
||||
] @keyword.import
|
||||
|
||||
; Keywords
|
||||
|
||||
[
|
||||
"flags"
|
||||
"define"
|
||||
|
|
@ -52,7 +49,6 @@
|
|||
] @keyword.repeat
|
||||
|
||||
; Constants
|
||||
|
||||
[
|
||||
"ignore"
|
||||
"substitute"
|
||||
|
|
@ -71,7 +67,6 @@
|
|||
(linedir) @constant.macro
|
||||
|
||||
; Operators
|
||||
|
||||
[
|
||||
"="
|
||||
"=>"
|
||||
|
|
@ -95,9 +90,7 @@
|
|||
(condition
|
||||
(any) @constant.macro)
|
||||
|
||||
|
||||
; Names
|
||||
|
||||
(name) @type
|
||||
|
||||
(block_name) @constant
|
||||
|
|
@ -107,7 +100,7 @@
|
|||
(option_name) @constant.builtin
|
||||
|
||||
((option_name) @constant.macro
|
||||
(#match? @constant.macro "^YY"))
|
||||
(#match? @constant.macro "^YY"))
|
||||
|
||||
(field_expression
|
||||
argument: (identifier) @variable)
|
||||
|
|
@ -115,7 +108,6 @@
|
|||
(field_identifier) @property
|
||||
|
||||
; Literals
|
||||
|
||||
(regex) @string.regexp
|
||||
|
||||
[
|
||||
|
|
@ -142,7 +134,6 @@
|
|||
] @property
|
||||
|
||||
; Configurations
|
||||
|
||||
(define
|
||||
option: (option_name) @_yy
|
||||
value: (dstring) @type
|
||||
|
|
@ -155,7 +146,6 @@
|
|||
(host_lang) @none
|
||||
|
||||
; Punctuation
|
||||
|
||||
[
|
||||
":"
|
||||
";"
|
||||
|
|
@ -164,15 +154,22 @@
|
|||
] @punctuation.delimiter
|
||||
|
||||
[
|
||||
"{" "}"
|
||||
"[" "]"
|
||||
"(" ")"
|
||||
"<" ">"
|
||||
"{"
|
||||
"}"
|
||||
"["
|
||||
"]"
|
||||
"("
|
||||
")"
|
||||
"<"
|
||||
">"
|
||||
] @punctuation.bracket
|
||||
|
||||
(repetition
|
||||
(limits
|
||||
["{" "}"] @punctuation.bracket))
|
||||
[
|
||||
"{"
|
||||
"}"
|
||||
] @punctuation.bracket))
|
||||
|
||||
[
|
||||
"!"
|
||||
|
|
@ -181,7 +178,6 @@
|
|||
] @punctuation.special
|
||||
|
||||
; Comments and error
|
||||
|
||||
[
|
||||
(comment)
|
||||
(ignore_block)
|
||||
|
|
|
|||
|
|
@ -1,11 +1,11 @@
|
|||
[
|
||||
(re2c)
|
||||
(action)
|
||||
(re2c)
|
||||
(action)
|
||||
] @indent.begin
|
||||
|
||||
"}" @indent.branch @indent.end
|
||||
|
||||
[
|
||||
(comment)
|
||||
(linedir)
|
||||
(comment)
|
||||
(linedir)
|
||||
] @indent.ignore
|
||||
|
|
|
|||
|
|
@ -2,8 +2,8 @@
|
|||
(#set! injection.parent))
|
||||
|
||||
((define
|
||||
option: (option_name) @_yy
|
||||
value: (dstring) @injection.content)
|
||||
option: (option_name) @_yy
|
||||
value: (dstring) @injection.content)
|
||||
(#any-of? @_yy "YYPEEK" "YYSKIP" "YYBACKUP" "YYBACKUPCTX" "YYRESTORE" "YYRESTORECTX" "YYFILL" "YYSHIFT")
|
||||
(#offset! @injection.content 0 1 0 -1)
|
||||
(#set! injection.parent))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue