diff options
| author | ObserverOfTime <chronobserver@disroot.org> | 2022-10-22 00:37:27 +0300 |
|---|---|---|
| committer | Stephan Seitz <stephan.seitz@fau.de> | 2023-02-04 04:19:40 -0800 |
| commit | bd7b4b6eff2dcb4a8a65f55d51398e79fa3d4ec6 (patch) | |
| tree | 112956577ba6395afdf9f11763b875362914601d /queries | |
| parent | Update parsers: gdscript, ruby, sql, zig (diff) | |
| download | nvim-treesitter-bd7b4b6eff2dcb4a8a65f55d51398e79fa3d4ec6.tar nvim-treesitter-bd7b4b6eff2dcb4a8a65f55d51398e79fa3d4ec6.tar.gz nvim-treesitter-bd7b4b6eff2dcb4a8a65f55d51398e79fa3d4ec6.tar.bz2 nvim-treesitter-bd7b4b6eff2dcb4a8a65f55d51398e79fa3d4ec6.tar.lz nvim-treesitter-bd7b4b6eff2dcb4a8a65f55d51398e79fa3d4ec6.tar.xz nvim-treesitter-bd7b4b6eff2dcb4a8a65f55d51398e79fa3d4ec6.tar.zst nvim-treesitter-bd7b4b6eff2dcb4a8a65f55d51398e79fa3d4ec6.zip | |
feat: add chatito
Diffstat (limited to 'queries')
| -rw-r--r-- | queries/chatito/folds.scm | 5 | ||||
| -rw-r--r-- | queries/chatito/highlights.scm | 54 | ||||
| -rw-r--r-- | queries/chatito/indents.scm | 7 | ||||
| -rw-r--r-- | queries/chatito/injections.scm | 1 | ||||
| -rw-r--r-- | queries/chatito/locals.scm | 10 |
5 files changed, 77 insertions, 0 deletions
diff --git a/queries/chatito/folds.scm b/queries/chatito/folds.scm new file mode 100644 index 000000000..20cb51941 --- /dev/null +++ b/queries/chatito/folds.scm @@ -0,0 +1,5 @@ +[ + (intent_def) + (slot_def) + (alias_def) +] @fold diff --git a/queries/chatito/highlights.scm b/queries/chatito/highlights.scm new file mode 100644 index 000000000..f933f43c3 --- /dev/null +++ b/queries/chatito/highlights.scm @@ -0,0 +1,54 @@ +;; Punctuation + +[ + "%[" + "@[" + "~[" + "*[" + "]" + "(" + ")" +] @punctuation.bracket + +[":" ","] @punctuation.delimiter + +(["\"" "'"] @punctuation.special @conceal + (#set! conceal "")) + +["%" "?" "#"] @character.special + +;; Entities + +(intent) @namespace + +(slot) @type + +(variation) @type.qualifier + +(alias) @property + +(number) @number + +(argument + key: (string) @label + value: (string) @string) + +(escape) @string.escape + +;; Import + +"import" @include + +(file) @string.special + +;; Text + +(word) @text @spell + +;; Comment + +(comment) @comment @spell + +;; Error + +(ERROR) @error diff --git a/queries/chatito/indents.scm b/queries/chatito/indents.scm new file mode 100644 index 000000000..849abadfc --- /dev/null +++ b/queries/chatito/indents.scm @@ -0,0 +1,7 @@ +[ + (intent_def) + (slot_def) + (alias_def) +] @indent + +(ERROR "]") @indent diff --git a/queries/chatito/injections.scm b/queries/chatito/injections.scm new file mode 100644 index 000000000..4bb7d675d --- /dev/null +++ b/queries/chatito/injections.scm @@ -0,0 +1 @@ +(comment) @comment diff --git a/queries/chatito/locals.scm b/queries/chatito/locals.scm new file mode 100644 index 000000000..4d7a6c1a0 --- /dev/null +++ b/queries/chatito/locals.scm @@ -0,0 +1,10 @@ +;; Definitions + +(intent_def (intent) @definition) +(slot_def (slot) @definition) +(alias_def (alias) @definition) + +;; References + +(slot_ref (slot) @reference) +(alias_ref (alias) @reference) |
