diff options
| author | Bryan Kenote <9691017+bryankenote@users.noreply.github.com> | 2023-11-28 17:24:43 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-11-28 12:24:43 -0500 |
| commit | bf982eb7dc9d54af748ea1dd8b9db3a7724b9a99 (patch) | |
| tree | c368a674eb4ba6c43130111213ea02ef61a25959 /queries/facility/highlights.scm | |
| parent | Update parsers: erlang, wing (diff) | |
| download | nvim-treesitter-bf982eb7dc9d54af748ea1dd8b9db3a7724b9a99.tar nvim-treesitter-bf982eb7dc9d54af748ea1dd8b9db3a7724b9a99.tar.gz nvim-treesitter-bf982eb7dc9d54af748ea1dd8b9db3a7724b9a99.tar.bz2 nvim-treesitter-bf982eb7dc9d54af748ea1dd8b9db3a7724b9a99.tar.lz nvim-treesitter-bf982eb7dc9d54af748ea1dd8b9db3a7724b9a99.tar.xz nvim-treesitter-bf982eb7dc9d54af748ea1dd8b9db3a7724b9a99.tar.zst nvim-treesitter-bf982eb7dc9d54af748ea1dd8b9db3a7724b9a99.zip | |
feat: add facility
Diffstat (limited to 'queries/facility/highlights.scm')
| -rw-r--r-- | queries/facility/highlights.scm | 81 |
1 files changed, 81 insertions, 0 deletions
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 |
