diff options
Diffstat (limited to 'queries')
| -rw-r--r-- | queries/facility/folds.scm | 6 | ||||
| -rw-r--r-- | queries/facility/highlights.scm | 81 | ||||
| -rw-r--r-- | queries/facility/indents.scm | 8 | ||||
| -rw-r--r-- | queries/facility/injections.scm | 5 |
4 files changed, 100 insertions, 0 deletions
diff --git a/queries/facility/folds.scm b/queries/facility/folds.scm new file mode 100644 index 000000000..7d8bafc80 --- /dev/null +++ b/queries/facility/folds.scm @@ -0,0 +1,6 @@ +[ + (service) + (method) + (dto) + (enum) +] @fold diff --git a/queries/facility/highlights.scm b/queries/facility/highlights.scm new file mode 100644 index 000000000..c10ff49be --- /dev/null +++ b/queries/facility/highlights.scm @@ -0,0 +1,81 @@ +[ + ";" + "." + "," +] @punctuation.delimiter + +[ + "(" + ")" + "[" + "]" + "{" + "}" +] @punctuation.bracket + +(comment) @comment @spell +(doc_comment) @comment.documentation @spell + +"method" @keyword.function + +[ + "service" + "errors" + "data" + "enum" + "extern" +] @type.builtin + +(type) @type.builtin + +(service + service_name: (identifier) @type) + +(error_set + (identifier) @property) + +(error_set + name: (identifier) @type) + +(dto + name: (identifier) @type) + +(external_dto + name: (identifier) @type) + +(enum + (values_block + (identifier) @constant)) + +(enum + name: (identifier) @type) + +(external_enum + name: (identifier) @type) + +(type + name: (identifier) @type) + +[ + "map" + "nullable" + "result" + "required" + "http" + "csharp" + "js" + "info" + "obsolete" +] @attribute.builtin + +(parameter + name: (identifier) @property) + +(field + name: (identifier) @variable) + +(method + name: (identifier) @method) + +(number_literal) @number +(string_literal) @string diff --git a/queries/facility/indents.scm b/queries/facility/indents.scm new file mode 100644 index 000000000..96a24f202 --- /dev/null +++ b/queries/facility/indents.scm @@ -0,0 +1,8 @@ +[ + (service_block) + (values_block) + (field_list) +] @indent.begin + +"}" @indent.branch + diff --git a/queries/facility/injections.scm b/queries/facility/injections.scm new file mode 100644 index 000000000..572849ab4 --- /dev/null +++ b/queries/facility/injections.scm @@ -0,0 +1,5 @@ +((remarks) @injection.content + (#set! injection.language "markdown")) + +([(comment) (doc_comment)] @injection.content + (#set! injection.language "comment")) |
