tree-sitter-bp/test/highlight/modules.bp
Bruno BELANYI c698c15eb2 Add modules highlighting
Still debating whether modules should be highlighted as namespaces or as
function calls.
2024-04-08 21:28:18 +01:00

21 lines
261 B
Text

foo {}
// <- module
foo ()
// <- module
foo {
// <- module
field: 12,
// <- variable.member
another_field: 27,
// <- variable.member
}
foo (
// <- module
field = 42,
// <- variable.member
done = false,
// <- variable.member
)