diff options
Diffstat (limited to 'runtime/queries/facility')
| -rw-r--r-- | runtime/queries/facility/folds.scm | 6 | ||||
| -rw-r--r-- | runtime/queries/facility/highlights.scm | 90 | ||||
| -rw-r--r-- | runtime/queries/facility/indents.scm | 7 | ||||
| -rw-r--r-- | runtime/queries/facility/injections.scm | 8 |
4 files changed, 111 insertions, 0 deletions
diff --git a/runtime/queries/facility/folds.scm b/runtime/queries/facility/folds.scm new file mode 100644 index 000000000..7d8bafc80 --- /dev/null +++ b/runtime/queries/facility/folds.scm @@ -0,0 +1,6 @@ +[ + (service) + (method) + (dto) + (enum) +] @fold diff --git a/runtime/queries/facility/highlights.scm b/runtime/queries/facility/highlights.scm new file mode 100644 index 000000000..592bf5311 --- /dev/null +++ b/runtime/queries/facility/highlights.scm @@ -0,0 +1,90 @@ +[ + ";" + "." + "," +] @punctuation.delimiter + +[ + "(" + ")" + "[" + "]" + "{" + "}" +] @punctuation.bracket + +(comment) @comment @spell + +(doc_comment) @comment.documentation @spell + +[ + "service" + "errors" +] @keyword + +[ + "method" + "event" +] @keyword.function + +[ + "enum" + "data" +] @keyword.type + +"extern" @keyword.modifier + +(type) @type.builtin + +(service + service_name: (identifier) @type) + +(error_set + (identifier) @variable.member) + +(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) @variable.parameter) + +(field + name: (identifier) @variable.member) + +(method + name: (identifier) @function.method) + +(number_literal) @number + +(string_literal) @string diff --git a/runtime/queries/facility/indents.scm b/runtime/queries/facility/indents.scm new file mode 100644 index 000000000..247949ba1 --- /dev/null +++ b/runtime/queries/facility/indents.scm @@ -0,0 +1,7 @@ +[ + (service_block) + (values_block) + (field_list) +] @indent.begin + +"}" @indent.branch diff --git a/runtime/queries/facility/injections.scm b/runtime/queries/facility/injections.scm new file mode 100644 index 000000000..5d9b7836f --- /dev/null +++ b/runtime/queries/facility/injections.scm @@ -0,0 +1,8 @@ +((remarks) @injection.content + (#set! injection.language "markdown")) + +([ + (comment) + (doc_comment) +] @injection.content + (#set! injection.language "comment")) |
