36 lines
718 B
Scheme
36 lines
718 B
Scheme
; TODO: automate highlighting testing
|
|
|
|
(comment) @comment.line
|
|
(integer) @constant.numeric
|
|
(variable) @variable
|
|
(value (symbol) @constant)
|
|
(import (symbol) @module)
|
|
(type (symbol)) @type
|
|
(type_alias name: _ @type)
|
|
|
|
(rule relation: (symbol) @constructor)
|
|
(definition relation: (symbol) @function)
|
|
(atom head: (symbol) @function)
|
|
|
|
[ ":-" "," "." ] @punctuation.delimiter
|
|
[ "(" ")" "{" "}" ] @punctuation.bracket
|
|
|
|
(aggregate_op) @keyword
|
|
(binary_expr op: _ @operator)
|
|
(unary_expr op: _ @operator)
|
|
|
|
[
|
|
"type"
|
|
"decision"
|
|
"define"
|
|
"import"
|
|
"input"
|
|
"output"
|
|
"soft"
|
|
] @keyword
|
|
|
|
; doc comments
|
|
((comment)+ @comment.docs . (definition))
|
|
((comment)+ @comment.docs . (rule))
|
|
((comment)+ @comment.docs . (assumption))
|