Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multiline function args higlighted incorrectly #2

Open
pnsantos opened this issue May 15, 2020 · 2 comments
Open

Multiline function args higlighted incorrectly #2

pnsantos opened this issue May 15, 2020 · 2 comments
Labels
bug Something isn't working

Comments

@pnsantos
Copy link

When I do:

#@ lib = struct.make(
#@   arg1=arg1,
#@   arg2=arg2
#@ )

the last three lines are being highlighted as if they were comments.

Using version 0.0.2 and vscode 1.45.1 (linux)

@cppforlife cppforlife added the bug Something isn't working label Jun 22, 2020
@ewrenn8
Copy link
Contributor

ewrenn8 commented Aug 19, 2020

This is because the function call end matcher in starlark grammar looks for ), so the #@'s are being interpreted as starlark comments in the arguments to the function. I am not sure there is a great to fix this; I will think on it some more.

@schmurfy
Copy link

schmurfy commented Dec 3, 2020

the same happen for:

#@ apps = [
#@  "first",
#@  "second"
#@ ]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants