nvim-treesitter/runtime/queries/fga/highlights.scm
Matouš Dzivjak 5ca72f9b30
feat(fga): add FGA grammar
FGA is the DSL for [OpenFGA](https://openfga.dev/) authorization models
- a zanzibar-like Role-Based Access Control system.
2025-07-08 09:17:03 +02:00

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