mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-12 08:20:05 -04:00
chore: query formatting
This commit is contained in:
parent
79975d6557
commit
57a8acf0c4
674 changed files with 18466 additions and 12648 deletions
|
|
@ -0,0 +1 @@
|
|||
|
||||
|
|
@ -1,26 +1,23 @@
|
|||
; Sections
|
||||
|
||||
(section_name) @type
|
||||
|
||||
((section_name) @keyword.import
|
||||
(#eq? @keyword.import "include"))
|
||||
(#eq? @keyword.import "include"))
|
||||
|
||||
((section_header
|
||||
(section_name) @keyword.import
|
||||
(subsection_name))
|
||||
(#eq? @keyword.import "includeIf"))
|
||||
(section_name) @keyword.import
|
||||
(subsection_name))
|
||||
(#eq? @keyword.import "includeIf"))
|
||||
|
||||
(variable (name) @property)
|
||||
(variable
|
||||
(name) @property)
|
||||
|
||||
; Operators
|
||||
|
||||
[
|
||||
"="
|
||||
] @operator
|
||||
"=" @operator
|
||||
|
||||
; Literals
|
||||
|
||||
(integer) @number
|
||||
|
||||
[
|
||||
(true)
|
||||
(false)
|
||||
|
|
@ -29,10 +26,10 @@
|
|||
(string) @string
|
||||
|
||||
((string) @string.special.path
|
||||
(#lua-match? @string.special.path "^[.]?[/]"))
|
||||
(#lua-match? @string.special.path "^[.]?[/]"))
|
||||
|
||||
((string) @string.special.path
|
||||
(#lua-match? @string.special.path "^[~]"))
|
||||
(#lua-match? @string.special.path "^[~]"))
|
||||
|
||||
(section_header
|
||||
[
|
||||
|
|
@ -41,9 +38,10 @@
|
|||
] @string.special)
|
||||
|
||||
; Punctuation
|
||||
|
||||
[ "[" "]" ] @punctuation.bracket
|
||||
[
|
||||
"["
|
||||
"]"
|
||||
] @punctuation.bracket
|
||||
|
||||
; Comments
|
||||
|
||||
(comment) @comment @spell
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue