From 692b051b09935653befdb8f7ba8afdb640adf17b Mon Sep 17 00:00:00 2001 From: Christian Clason Date: Mon, 12 Jun 2023 09:54:30 -0600 Subject: feat!: drop modules, general refactor and cleanup --- runtime/queries/jsdoc/highlights.scm | 42 ++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 runtime/queries/jsdoc/highlights.scm (limited to 'runtime/queries/jsdoc/highlights.scm') diff --git a/runtime/queries/jsdoc/highlights.scm b/runtime/queries/jsdoc/highlights.scm new file mode 100644 index 000000000..6df73318d --- /dev/null +++ b/runtime/queries/jsdoc/highlights.scm @@ -0,0 +1,42 @@ +(tag_name) @keyword @nospell + +(type) @type @nospell + +[ + "{" + "}" + "[" + "]" +] @punctuation.bracket + +[ + ":" + "." + "#" + "~" +] @punctuation.delimiter + +(path_expression + "/" @punctuation.delimiter) + +(identifier) @variable @nospell + +(tag + (tag_name) @_name + (identifier) @function + (#any-of? @_name "@callback" "@function" "@func" "@method")) + +(tag + (tag_name) @_name + (identifier) @variable.parameter + (#any-of? @_name "@param" "@arg" "@argument")) + +(tag + (tag_name) @_name + (identifier) @property + (#any-of? @_name "@prop" "@property")) + +(tag + (tag_name) @_name + (identifier) @type + (#eq? @_name "@typedef")) -- cgit v1.2.3-70-g09d2