summaryrefslogtreecommitdiff
path: root/runtime/queries/haskell-persistent/highlights.scm
blob: d6358578d7f5aada5280a30b292aef5fb07ef71b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
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