Currently we only consider the possibility for a field_access to actually be a remote function when it is being used in a function call expression or on the right side of a pipe. However, there is at least one other case where this could be true:
let foo = io.println
foo("Hello, World!")
Here, io.println is a remote function which is being bound to the local variable foo.
In order to catch this and other circumstances where a field_access may actually be a remote function reference, I generalized the highlight matcher.
I also added a test to ensure that highlighting of remote function invocations behaves as we expect.
Currently we only consider the possibility for a
field_access
to actually be a remote function when it is being used in a function call expression or on the right side of a pipe. However, there is at least one other case where this could be true:Here,
io.println
is a remote function which is being bound to the local variablefoo
.In order to catch this and other circumstances where a
field_access
may actually be a remote function reference, I generalized the highlight matcher.I also added a test to ensure that highlighting of remote function invocations behaves as we expect.