mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-21 12:50:09 -04:00
FGA is the DSL for [OpenFGA](https://openfga.dev/) authorization models - a zanzibar-like Role-Based Access Control system.
50 lines
625 B
Scheme
50 lines
625 B
Scheme
(call_expression
|
|
function: (identifier) @function)
|
|
|
|
(call_expression
|
|
function: (selector_expression
|
|
field: (identifier) @function.method))
|
|
|
|
((type_identifier) @type.builtin
|
|
(#match? @type.builtin "^(string|int|map|uint|list|timestamp|bool|duration|double|ipaddress)$"))
|
|
|
|
(condition_declaration
|
|
name: (identifier) @function)
|
|
|
|
(version) @number
|
|
|
|
[
|
|
"*"
|
|
"/"
|
|
"%"
|
|
">>"
|
|
"<<"
|
|
"&"
|
|
"&^"
|
|
] @operator
|
|
|
|
[
|
|
"+"
|
|
"-"
|
|
"|"
|
|
"^"
|
|
] @operator
|
|
|
|
[
|
|
"or"
|
|
"and"
|
|
"but not"
|
|
] @operator
|
|
|
|
[
|
|
"model"
|
|
"schema"
|
|
"type"
|
|
"relations"
|
|
"define"
|
|
"from"
|
|
] @keyword
|
|
|
|
"condition" @keyword.function
|
|
|
|
(comment) @comment
|