forked from Mirrors/helix
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
38 lines
802 B
Scheme
38 lines
802 B
Scheme
1 year ago
|
;; ----------------------------------------------------------------------------
|
||
|
;; 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
|