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.
helix/runtime/queries/dhall/highlights.scm

53 lines
819 B
Scheme

;; Literals
(integer_literal) @constant.numeric.integer
(natural_literal) @constant.numeric.integer
(double_literal) @constant.numeric.float
(boolean_literal) @constant.builtin.boolean
(text_literal) @string
(local_import) @string.special.path
(http_import) @string.special.url
(import_hash) @string
;; Comments
[
(line_comment)
(block_comment)
] @comment
;; Keywords
[
("let")
("in")
(assign_operator)
(type_operator)
(lambda_operator)
(arrow_operator)
(infix_operator)
(completion_operator)
("using")
("assert")
(assert_operator)
("as")
(forall_operator)
("with")
] @keyword
;; Builtins
[
(builtin_function)
(missing_import)
] @function.builtin
[
(builtin)
(import_as_text)
] @type.builtin
;; Conditionals
[
("if")
("then")
("else")
] @keyword.control.conditional