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>
66 lines
829 B
Scheme
66 lines
829 B
Scheme
; Operators
|
|
|
|
[
|
|
"-"
|
|
"!"
|
|
"*"
|
|
"/"
|
|
"&&"
|
|
"%"
|
|
"+"
|
|
"<"
|
|
"<="
|
|
"=="
|
|
">"
|
|
">="
|
|
"||"
|
|
] @operator
|
|
|
|
; Keywords
|
|
|
|
[
|
|
"in"
|
|
] @keyword
|
|
|
|
; Function calls
|
|
|
|
(call_expression
|
|
function: (identifier) @function)
|
|
|
|
(member_call_expression
|
|
function: (identifier) @function)
|
|
|
|
; Identifiers
|
|
|
|
(select_expression
|
|
operand: (identifier) @type)
|
|
|
|
(select_expression
|
|
operand: (select_expression
|
|
member: (identifier) @type))
|
|
|
|
(identifier) @variable.other.member
|
|
|
|
; Literals
|
|
|
|
[
|
|
(double_quote_string_literal)
|
|
(single_quoted_string_literal)
|
|
(triple_double_quote_string_literal)
|
|
(triple_single_quoted_string_literal)
|
|
] @string
|
|
|
|
[
|
|
(int_literal)
|
|
(uint_literal)
|
|
] @constant.numeric.integer
|
|
(float_literal) @constant.numeric.float
|
|
|
|
[
|
|
(true)
|
|
(false)
|
|
] @constant.builtin.boolean
|
|
|
|
(null) @constant.builtin
|
|
|
|
(comment) @comment
|