From e9984bb744d3a413f58f4151df081db746df9c48 Mon Sep 17 00:00:00 2001 From: Borys Lykah Date: Sat, 24 Jun 2023 13:00:47 -0600 Subject: feat: add support for haskell persistent library --- queries/haskell_persistent/folds.scm | 3 +++ queries/haskell_persistent/highlights.scm | 38 +++++++++++++++++++++++++++++++ 2 files changed, 41 insertions(+) create mode 100644 queries/haskell_persistent/folds.scm create mode 100644 queries/haskell_persistent/highlights.scm (limited to 'queries/haskell_persistent') diff --git a/queries/haskell_persistent/folds.scm b/queries/haskell_persistent/folds.scm new file mode 100644 index 000000000..2bdffd177 --- /dev/null +++ b/queries/haskell_persistent/folds.scm @@ -0,0 +1,3 @@ +[ + (entity_definition) +] @fold diff --git a/queries/haskell_persistent/highlights.scm b/queries/haskell_persistent/highlights.scm new file mode 100644 index 000000000..afb32f11d --- /dev/null +++ b/queries/haskell_persistent/highlights.scm @@ -0,0 +1,38 @@ +;; ---------------------------------------------------------------------------- +;; Literals and comments + +(integer) @number +(float) @float +(char) @character +(string) @string +(attribute_name) @attribute +(attribute_exclamation_mark) @attribute + +(con_unit) @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.3.1