perga.nvim/queries/perga/highlights.scm

27 lines
473 B
Scheme

[ "fun" "λ" "forall" "∏" ] @keyword
(axiom) @keyword
(preprocess
(command) @keyword
(post_command) @string)
[ "->" "=>" "→" "⇒" "," ":=" ";" ":" ] @punctuation.delimiter
[(star) (square)] @constant.builtin
(comment) @comment
(block_comment) @comment
[ "(" ")" ] @punctuation.bracket
(definition
name: (identifier) @function)
(param_block
param: (identifier)+ @variable.parameter)
(param_block
type: (expr) @type)
(ascription
type: (expr) @type)