|
|
@ -1,17 +1,3 @@
|
|
|
|
;; ----------------------------------------------------------------------------
|
|
|
|
|
|
|
|
;; Literals and comments
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
(integer) @constant.numeric.integer
|
|
|
|
|
|
|
|
(exp_negation) @constant.numeric.integer
|
|
|
|
|
|
|
|
(exp_literal (float)) @constant.numeric.float
|
|
|
|
|
|
|
|
(char) @constant.character
|
|
|
|
|
|
|
|
(string) @string
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
(con_unit) @constant.builtin ; unit, as in ()
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
(comment) @comment
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
;; ----------------------------------------------------------------------------
|
|
|
|
;; ----------------------------------------------------------------------------
|
|
|
|
;; Punctuation
|
|
|
|
;; Punctuation
|
|
|
|
|
|
|
|
|
|
|
@ -30,6 +16,20 @@
|
|
|
|
] @punctuation.delimiter
|
|
|
|
] @punctuation.delimiter
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
;; ----------------------------------------------------------------------------
|
|
|
|
|
|
|
|
;; Literals and comments
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
(integer) @constant.numeric.integer
|
|
|
|
|
|
|
|
(exp_negation) @constant.numeric.integer
|
|
|
|
|
|
|
|
(exp_literal (float)) @constant.numeric.float
|
|
|
|
|
|
|
|
(char) @constant.character
|
|
|
|
|
|
|
|
(string) @string
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
(comment) @comment
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
(con_unit [ "(" ")" ] @constant.builtin) ; unit, as in ()
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
;; ----------------------------------------------------------------------------
|
|
|
|
;; ----------------------------------------------------------------------------
|
|
|
|
;; Keywords, operators, includes
|
|
|
|
;; Keywords, operators, includes
|
|
|
|
|
|
|
|
|
|
|
@ -103,6 +103,8 @@
|
|
|
|
;; ----------------------------------------------------------------------------
|
|
|
|
;; ----------------------------------------------------------------------------
|
|
|
|
;; Functions and variables
|
|
|
|
;; Functions and variables
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
(variable) @variable
|
|
|
|
|
|
|
|
|
|
|
|
(signature name: (variable) @type)
|
|
|
|
(signature name: (variable) @type)
|
|
|
|
(function
|
|
|
|
(function
|
|
|
|
name: (variable) @function
|
|
|
|
name: (variable) @function
|
|
|
@ -117,7 +119,6 @@
|
|
|
|
(exp_apply . (exp_name (variable) @function))
|
|
|
|
(exp_apply . (exp_name (variable) @function))
|
|
|
|
(exp_apply . (exp_name (qualified_variable (variable) @function)))
|
|
|
|
(exp_apply . (exp_name (qualified_variable (variable) @function)))
|
|
|
|
|
|
|
|
|
|
|
|
(variable) @variable
|
|
|
|
|
|
|
|
(pat_wildcard) @variable
|
|
|
|
(pat_wildcard) @variable
|
|
|
|
|
|
|
|
|
|
|
|
;; ----------------------------------------------------------------------------
|
|
|
|
;; ----------------------------------------------------------------------------
|
|
|
|