From 04dda34cb75018399d8a0a688ea10eb4de889eeb Mon Sep 17 00:00:00 2001 From: urbit-pilled <129720764+urbit-pilled@users.noreply.github.com> Date: Fri, 30 Jun 2023 11:26:44 +1200 Subject: feat: add Hoon language support --------- Co-authored-by: urbit-pilled Co-authored-by: Amaan Qureshi --- queries/hoon/folds.scm | 6 ++++++ queries/hoon/highlights.scm | 33 +++++++++++++++++++++++++++++++++ queries/hoon/locals.scm | 4 ++++ 3 files changed, 43 insertions(+) create mode 100644 queries/hoon/folds.scm create mode 100644 queries/hoon/highlights.scm create mode 100644 queries/hoon/locals.scm (limited to 'queries') diff --git a/queries/hoon/folds.scm b/queries/hoon/folds.scm new file mode 100644 index 000000000..93d1386e7 --- /dev/null +++ b/queries/hoon/folds.scm @@ -0,0 +1,6 @@ +[ + (bartisTall) + (luslusTall) + (lusbucTall) + (barcenTall) + ] @fold diff --git a/queries/hoon/highlights.scm b/queries/hoon/highlights.scm new file mode 100644 index 000000000..f7136f63e --- /dev/null +++ b/queries/hoon/highlights.scm @@ -0,0 +1,33 @@ +(number) @number + +(string) @string + +[ + "(" + ")" + "[" + "]" +] @punctuation.bracket + +[ + (coreTerminator) + (seriesTerminator) +] @punctuation.delimiter + + +(rune) @operator + +(term) @constant + +(aura) @constant.builtin + +(Gap) @comment + +(boolean) @constant.builtin + +(date) @string.special + +(mold) @symbol +(specialIndex) @number.builtin +(lark) @operator +(fullContext) @symbol diff --git a/queries/hoon/locals.scm b/queries/hoon/locals.scm new file mode 100644 index 000000000..159783fd0 --- /dev/null +++ b/queries/hoon/locals.scm @@ -0,0 +1,4 @@ +(tisfasTall + name: (name) @definition.var) + +(name) @reference -- cgit v1.2.3-70-g09d2