diff options
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) |
