From bd7b4b6eff2dcb4a8a65f55d51398e79fa3d4ec6 Mon Sep 17 00:00:00 2001 From: ObserverOfTime Date: Sat, 22 Oct 2022 00:37:27 +0300 Subject: feat: add chatito --- queries/chatito/folds.scm | 5 ++++ queries/chatito/highlights.scm | 54 ++++++++++++++++++++++++++++++++++++++++++ queries/chatito/indents.scm | 7 ++++++ queries/chatito/injections.scm | 1 + queries/chatito/locals.scm | 10 ++++++++ 5 files changed, 77 insertions(+) create mode 100644 queries/chatito/folds.scm create mode 100644 queries/chatito/highlights.scm create mode 100644 queries/chatito/indents.scm create mode 100644 queries/chatito/injections.scm create mode 100644 queries/chatito/locals.scm (limited to 'queries/chatito') 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) -- cgit v1.2.3-70-g09d2