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>
47 lines
528 B
Scheme
47 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
|