Add builtins highlighting
This commit is contained in:
parent
3475d713d5
commit
73b0797891
|
@ -49,6 +49,14 @@
|
||||||
field: (identifier) @variable.member))
|
field: (identifier) @variable.member))
|
||||||
; }}}
|
; }}}
|
||||||
|
|
||||||
|
; Built-ins {{{
|
||||||
|
[
|
||||||
|
(unset)
|
||||||
|
"default"
|
||||||
|
] @variable.builtin
|
||||||
|
(selection_type) @function.builtin
|
||||||
|
; }}}
|
||||||
|
|
||||||
; Expressions {{{
|
; Expressions {{{
|
||||||
(map_expression
|
(map_expression
|
||||||
(property
|
(property
|
||||||
|
|
8
test/highlight/builtins.bp
Normal file
8
test/highlight/builtins.bp
Normal 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
|
||||||
|
})
|
Loading…
Reference in a new issue