mirror of
https://github.com/helix-editor/helix.git
synced 2024-11-23 01:46:18 +04:00
d9f7aaacaf
* languages: add CEL language and grammar * languages: add spicedb schema language * chore: docgen * runtime/queries: refine spicedb & cel highlights Co-authored-by: Michael Davis <mcarsondavis@gmail.com> * languages: update spicedb --------- Co-authored-by: Michael Davis <mcarsondavis@gmail.com>
48 lines
528 B
Scheme
48 lines
528 B
Scheme
; highlights.scm
|
|
|
|
[
|
|
"definition"
|
|
"caveat"
|
|
"permission"
|
|
"relation"
|
|
"nil"
|
|
] @keyword
|
|
|
|
[
|
|
","
|
|
":"
|
|
] @punctuation.delimiter
|
|
|
|
[
|
|
"("
|
|
")"
|
|
"{"
|
|
"}"
|
|
] @punctuation.bracket
|
|
|
|
[
|
|
"|"
|
|
"+"
|
|
"-"
|
|
"&"
|
|
"#"
|
|
"->"
|
|
"="
|
|
] @operator
|
|
("with") @keyword.operator
|
|
|
|
[
|
|
"nil"
|
|
"*"
|
|
] @constant.builtin
|
|
|
|
(comment) @comment
|
|
(type_identifier) @type
|
|
(cel_type_identifier) @type
|
|
(cel_variable_identifier) @variable.parameter
|
|
(field_identifier) @variable.other.member
|
|
[
|
|
(func_identifier)
|
|
(method_identifier)
|
|
] @function.method
|