Consider module as function call for highlighting
All checks were successful
ci/woodpecker/push/check Pipeline was successful

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.
This commit is contained in:
Bruno BELANYI 2024-04-10 15:21:07 +00:00
parent be1e3f07d3
commit f6e1266493
4 changed files with 12 additions and 12 deletions

View file

@ -1,21 +1,21 @@
foo {}
// <- module
// <- function.call
foo ()
// <- module
// <- function.call
foo {
// <- module
// <- function.call
field: 12,
// <- variable.member
// <- variable.parameter
another_field: 27,
// <- variable.member
// <- variable.parameter
}
foo (
// <- module
// <- function.call
field = 42,
// <- variable.member
// <- variable.parameter
done = false,
// <- variable.member
// <- variable.parameter
)