diff options
Diffstat (limited to 'queries/doxygen')
| -rw-r--r-- | queries/doxygen/highlights.scm | 38 | ||||
| -rw-r--r-- | queries/doxygen/indents.scm | 1 | ||||
| -rw-r--r-- | queries/doxygen/injections.scm | 8 |
3 files changed, 47 insertions, 0 deletions
diff --git a/queries/doxygen/highlights.scm b/queries/doxygen/highlights.scm new file mode 100644 index 000000000..621199865 --- /dev/null +++ b/queries/doxygen/highlights.scm @@ -0,0 +1,38 @@ +((tag_name) @keyword + (#set! "priority" 105)) + +(identifier) @variable + +((tag + (tag_name) @_param + (identifier) @parameter) + (#any-of? @_param "@param" "\\param")) + +(function (identifier) @function) + +(function_link) @function + +(emphasis) @text.emphasis + +"\\a" @tag + +[ + "in" + "out" + "inout" +] @storageclass + +"~" @operator + +[ + "<a" + ">" + "</a>" +] @tag + +[ + "," + "::" +] @punctuation.delimiter + +[ "(" ")" "[" "]" ] @punctuation.bracket diff --git a/queries/doxygen/indents.scm b/queries/doxygen/indents.scm new file mode 100644 index 000000000..ef30f1e76 --- /dev/null +++ b/queries/doxygen/indents.scm @@ -0,0 +1 @@ +(document) @indent.auto diff --git a/queries/doxygen/injections.scm b/queries/doxygen/injections.scm new file mode 100644 index 000000000..1b5ee5858 --- /dev/null +++ b/queries/doxygen/injections.scm @@ -0,0 +1,8 @@ +((type) @injection.content + (#set! injection.parent)) + +((function_link) @injection.content + (#set! injection.parent)) + +((link) @injection.content + (#set! injection.language "html")) |
