mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-02 03:26:52 -04:00
feat!: drop modules, general refactor and cleanup
This commit is contained in:
parent
c13e28f894
commit
2c8f2f2fad
829 changed files with 4905 additions and 8010 deletions
45
runtime/queries/phpdoc/highlights.scm
Normal file
45
runtime/queries/phpdoc/highlights.scm
Normal file
|
|
@ -0,0 +1,45 @@
|
|||
(tag_name) @attribute
|
||||
(tag
|
||||
(tag_name) @_tag (#eq? @_tag "@param")
|
||||
(variable_name) @parameter
|
||||
)
|
||||
(tag
|
||||
(tag_name) @_tag (#eq? @_tag "@property")
|
||||
(variable_name) @property
|
||||
)
|
||||
(tag
|
||||
(tag_name) @_tag (#eq? @_tag "@var")
|
||||
(variable_name) @variable
|
||||
)
|
||||
(tag
|
||||
(tag_name) @_tag (#eq? @_tag "@method")
|
||||
(name) @method
|
||||
)
|
||||
(parameter
|
||||
(variable_name) @parameter)
|
||||
(type_list
|
||||
[
|
||||
(array_type)
|
||||
(primitive_type)
|
||||
(named_type)
|
||||
(optional_type)
|
||||
] @type)
|
||||
(tag
|
||||
(description (text) @text))
|
||||
(tag
|
||||
[
|
||||
(author_name)
|
||||
(version)
|
||||
] @text)
|
||||
(tag
|
||||
(email_address) @text.uri
|
||||
)
|
||||
|
||||
(type_list "|" @keyword)
|
||||
(variable_name "$" @keyword)
|
||||
(tag
|
||||
(tag_name) @_tag_name
|
||||
["<" ">"] @keyword
|
||||
(#eq? @_tag_name "@author"))
|
||||
|
||||
(text) @spell
|
||||
Loading…
Add table
Add a link
Reference in a new issue