From 692b051b09935653befdb8f7ba8afdb640adf17b Mon Sep 17 00:00:00 2001 From: Christian Clason Date: Mon, 12 Jun 2023 09:54:30 -0600 Subject: feat!: drop modules, general refactor and cleanup --- runtime/queries/haskell_persistent/folds.scm | 1 + runtime/queries/haskell_persistent/highlights.scm | 38 +++++++++++++++++++++++ 2 files changed, 39 insertions(+) create mode 100644 runtime/queries/haskell_persistent/folds.scm create mode 100644 runtime/queries/haskell_persistent/highlights.scm (limited to 'runtime/queries/haskell_persistent') diff --git a/runtime/queries/haskell_persistent/folds.scm b/runtime/queries/haskell_persistent/folds.scm new file mode 100644 index 000000000..dd34d9f15 --- /dev/null +++ b/runtime/queries/haskell_persistent/folds.scm @@ -0,0 +1 @@ +(entity_definition) @fold diff --git a/runtime/queries/haskell_persistent/highlights.scm b/runtime/queries/haskell_persistent/highlights.scm new file mode 100644 index 000000000..22cbf5cb3 --- /dev/null +++ b/runtime/queries/haskell_persistent/highlights.scm @@ -0,0 +1,38 @@ +; ---------------------------------------------------------------------------- +; Literals and comments +(integer) @number + +(float) @number.float + +(char) @character + +(string) @string + +(attribute_name) @attribute + +(attribute_exclamation_mark) @attribute + +(con_unit) @string.special.symbol ; unit, as in () + +(comment) @comment @spell + +; ---------------------------------------------------------------------------- +; Keywords, operators, includes +[ + "Id" + "Primary" + "Foreign" + "deriving" +] @keyword + +"=" @operator + +; ---------------------------------------------------------------------------- +; Functions and variables +(variable) @variable + +; ---------------------------------------------------------------------------- +; Types +(type) @type + +(constructor) @constructor -- cgit v1.2.3-70-g09d2