1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-02-03 13:40:06 +08:00
SpaceVim/bundle/nvim-treesitter-0.9.1/queries/haskell_persistent/highlights.scm

39 lines
757 B
Scheme

;; ----------------------------------------------------------------------------
;; 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