summaryrefslogtreecommitdiff
path: root/runtime/queries/haskell-persistent/highlights.scm
diff options
context:
space:
mode:
authorBorys Lykah2023-07-09 17:17:01 +0000
committerGitHub2023-07-09 17:17:01 +0000
commit7c338429f845315fb276ff482f91b94b3102dbd8 (patch)
tree0b18cb105e4552c0594dc206e275335e3c482440 /runtime/queries/haskell-persistent/highlights.scm
parentc33795e770808f11c975f30848067ce1c7ee85be (diff)
Add language support for persistent library syntax (#7261)
Diffstat (limited to 'runtime/queries/haskell-persistent/highlights.scm')
-rw-r--r--runtime/queries/haskell-persistent/highlights.scm37
1 files changed, 37 insertions, 0 deletions
diff --git a/runtime/queries/haskell-persistent/highlights.scm b/runtime/queries/haskell-persistent/highlights.scm
new file mode 100644
index 00000000..d6358578
--- /dev/null
+++ b/runtime/queries/haskell-persistent/highlights.scm
@@ -0,0 +1,37 @@
+;; ----------------------------------------------------------------------------
+;; Literals and comments
+
+(integer) @constant.numeric.integer
+(float) @constant.numeric.float
+(char) @constant.character
+(string) @string
+(attribute_name) @attribute
+(attribute_exclamation_mark) @attribute
+
+(con_unit) @constant.builtin ; unit, as in ()
+
+(comment) @comment
+
+;; ----------------------------------------------------------------------------
+;; Keywords, operators, includes
+
+[
+ "Id"
+ "Primary"
+ "Foreign"
+ "deriving"
+] @keyword
+
+"=" @operator
+
+;; ----------------------------------------------------------------------------
+;; Functions and variables
+
+(variable) @variable
+
+;; ----------------------------------------------------------------------------
+;; Types
+
+(type) @type
+
+(constructor) @constructor