Add builtins highlighting

This commit is contained in:
Bruno BELANYI 2024-04-08 22:13:23 +01:00
parent 3475d713d5
commit 73b0797891
2 changed files with 16 additions and 0 deletions

View file

@ -49,6 +49,14 @@
field: (identifier) @variable.member))
; }}}
; Built-ins {{{
[
(unset)
"default"
] @variable.builtin
(selection_type) @function.builtin
; }}}
; Expressions {{{
(map_expression
(property

View file

@ -0,0 +1,8 @@
foo = select(soong_config_variable("my_namespace", "my_var"), {
// ^ function.builtin
"foo": unset,
// ^ variable.builtin
default: select(variant("VARIANT"), {}),
// <- variable.builtin
// ^ function.builtin
})