tree-sitter-bp/test/highlight/select.bp

19 lines
350 B
Plaintext
Raw Normal View History

2024-04-08 23:13:23 +02:00
foo = select(soong_config_variable("my_namespace", "my_var"), {
// ^ keyword.conditional
"foo": unset,
2024-07-01 15:53:48 +02:00
any @ foo: unset,
// ^ operator
// ^ variable
2024-04-08 23:13:23 +02:00
default: "bar",
})
// It can still be used as a normal variable name
select = 42
// <- variable
// Or module property
foo {
select: 42,
// <- variable.parameter
2024-04-08 23:13:23 +02:00
}