tree-sitter-bp/test/highlight/select.bp
Bruno BELANYI f6e1266493
All checks were successful
ci/woodpecker/push/check Pipeline was successful
Consider module as function call for highlighting
Their semantic is closer to a function call (like i.e: Bazel rules)
rather than a module/namespace.

Similarly for their properties, which are more like parameters than
members.
2024-04-10 15:21:07 +00:00

16 lines
288 B
Plaintext

foo = select(soong_config_variable("my_namespace", "my_var"), {
// ^ keyword.conditional
"foo": unset,
default: "bar",
})
// It can still be used as a normal variable name
select = 42
// <- variable
// Or module property
foo {
select: 42,
// <- variable.parameter
}