diff options
| author | Michael Härtl <haertl.mike@gmail.com> | 2022-01-17 12:20:47 +0100 |
|---|---|---|
| committer | Stephan Seitz <stephan.seitz@fau.de> | 2022-01-20 15:37:44 +0100 |
| commit | d7c4ae886d90471b1839dd601887bdd6e882efd9 (patch) | |
| tree | 37bf8b384531d0c0651dd70ebf0ba7f9ae4a0dc6 /queries/phpdoc | |
| parent | highlights(c): don't highlight type qualifiers in declarations as types (diff) | |
| download | nvim-treesitter-d7c4ae886d90471b1839dd601887bdd6e882efd9.tar nvim-treesitter-d7c4ae886d90471b1839dd601887bdd6e882efd9.tar.gz nvim-treesitter-d7c4ae886d90471b1839dd601887bdd6e882efd9.tar.bz2 nvim-treesitter-d7c4ae886d90471b1839dd601887bdd6e882efd9.tar.lz nvim-treesitter-d7c4ae886d90471b1839dd601887bdd6e882efd9.tar.xz nvim-treesitter-d7c4ae886d90471b1839dd601887bdd6e882efd9.tar.zst nvim-treesitter-d7c4ae886d90471b1839dd601887bdd6e882efd9.zip | |
parsers: add phpdoc parser (experimental)
Diffstat (limited to 'queries/phpdoc')
| -rw-r--r-- | queries/phpdoc/highlights.scm | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/queries/phpdoc/highlights.scm b/queries/phpdoc/highlights.scm new file mode 100644 index 000000000..047ee3aa8 --- /dev/null +++ b/queries/phpdoc/highlights.scm @@ -0,0 +1,42 @@ +(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) + ] @type) +(tag + (description (text) @text)) +(tag + [ + (author_name) + (version) + ] @text) +(tag + (email_address) @text.uri +) + +[ + "$" + ">" + "<" + "|" +]@keyword |
