chore: query formatting

This commit is contained in:
Pham Huy Hoang 2024-01-06 15:05:50 +09:00 committed by Christian Clason
parent 79975d6557
commit 57a8acf0c4
674 changed files with 18466 additions and 12648 deletions

View file

@ -1,22 +1,28 @@
(tag_name) @attribute @nospell
(tag
(tag_name) @_tag (#eq? @_tag "@param")
(variable_name) @variable.parameter
)
(tag_name) @_tag
(#eq? @_tag "@param")
(variable_name) @variable.parameter)
(tag
(tag_name) @_tag (#eq? @_tag "@property")
(variable_name) @property
)
(tag_name) @_tag
(#eq? @_tag "@property")
(variable_name) @property)
(tag
(tag_name) @_tag (#eq? @_tag "@var")
(variable_name) @variable
)
(tag_name) @_tag
(#eq? @_tag "@var")
(variable_name) @variable)
(tag
(tag_name) @_tag (#eq? @_tag "@function.method")
(name) @function.method
)
(tag_name) @_tag
(#eq? @_tag "@function.method")
(name) @function.method)
(parameter
(variable_name) @variable.parameter)
(type_list
[
(array_type)
@ -24,24 +30,36 @@
(named_type)
(optional_type)
] @type)
(type_list) @nospell
(variable_name) @nospell
(tag
(description (text) @none @spell))
(description
(text) @none @spell))
(tag
[
(author_name)
(version)
] @none)
(tag
(email_address) @string.special.url
)
(type_list "|" @keyword)
(variable_name "$" @keyword)
(tag
(email_address) @string.special.url)
(type_list
"|" @keyword)
(variable_name
"$" @keyword)
(tag
(tag_name) @_tag_name
["<" ">"] @keyword
[
"<"
">"
] @keyword
(#eq? @_tag_name "@author"))
(text) @spell