helix-mirror/runtime/queries/haskell/highlights.scm

46 lines
1008 B
Scheme
Raw Normal View History

(variable) @variable
(operator) @operator
(exp_name (constructor) @constructor)
(constructor_operator) @operator
2021-09-06 09:33:02 +04:00
(module) @namespace
(type) @type
(type) @class
(constructor) @constructor
(pragma) @pragma
(comment) @comment
2021-12-17 12:04:31 +04:00
(signature name: (variable) @type)
2021-09-06 09:33:02 +04:00
(function name: (variable) @function)
(constraint class: (class_name (type)) @class)
(class (class_head class: (class_name (type)) @class))
(instance (instance_head class: (class_name (type)) @class))
(integer) @constant.numeric.integer
(exp_literal (float)) @constant.numeric.float
(char) @constant.character
(con_unit) @literal
(con_list) @literal
(tycon_arrow) @operator
(where) @keyword
"module" @keyword
"let" @keyword
"in" @keyword
"class" @keyword
"instance" @keyword
"data" @keyword
"newtype" @keyword
"family" @keyword
"type" @keyword
"import" @keyword
"qualified" @keyword
"as" @keyword
"deriving" @keyword
"via" @keyword
"stock" @keyword
"anyclass" @keyword
"do" @keyword
"mdo" @keyword
"rec" @keyword
2021-09-06 09:33:02 +04:00
[
"("
")"
] @punctuation.bracket