1
0
mirror of https://github.com/helix-editor/helix synced 2026-07-28 23:33:35 +02:00
Files
helix/runtime/queries/fga/highlights.scm
Matouš Dzivjak 0d7e1dc93a feat(languages): update fga to latest (#15473)
Update tree-sitter-fga to latest and update highlight queries
accordingly.
2026-03-19 16:15:12 -05:00

73 lines
1.6 KiB
Scheme

(condition_declaration
name: (identifier) @function)
(condition_declaration
(param
name: (identifier) @variable.parameter))
(conditional
condition: (identifier) @function)
(type_declaration
name: (extended_identifier) @type)
(definition
relation: (extended_identifier) @variable)
(indirect_relation
relation: (extended_identifier) @variable.other.member
tupleset: (extended_identifier) @variable)
(relation_ref) @type
(all) @type
((simple_type_identifier) @type.builtin)
((container_type_identifier) @type.builtin)
(version) @constant.numeric
(int) @constant.numeric.integer
(uint) @constant.numeric.integer
(float) @constant.numeric.float
(string) @string
(bytes) @string.special
(boolean) @constant.builtin.boolean
(null) @constant.builtin
(condition_body
(identifier) @variable)
(parenthesized_condition
(identifier) @variable)
(bracket_condition
(identifier) @variable)
(braced_condition
(identifier) @variable)
(operator) @operator
(condition_operator) @operator
(condition_body ["{" "}"] @punctuation.bracket)
(parenthesized_condition ["(" ")"] @punctuation.bracket)
(bracket_condition ["[" "]"] @punctuation.bracket)
(braced_condition ["{" "}"] @punctuation.bracket)
(model) @keyword
(module "module" @keyword)
(schema "schema" @keyword)
(contents "contents" @keyword)
(relations "relations" @keyword)
(type_declaration "extend" @keyword)
(type_declaration "type" @keyword)
(definition "define" @keyword)
(indirect_relation "from" @keyword.operator)
(conditional "with" @keyword.operator)
(condition_declaration "condition" @keyword.function)
(comment) @comment