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

Plugin does not recognize key value form of every #145

Open
anderseknert opened this issue Mar 31, 2023 · 2 comments
Open

Plugin does not recognize key value form of every #145

anderseknert opened this issue Mar 31, 2023 · 2 comments
Assignees
Labels
area/grammar issue or pr related to the grammar bug Something isn't working

Comments

@anderseknert
Copy link
Member

It seems like the plugin doesn't know about the key-value version of every, as it complains about the ,.

allow {
	every key, val in input {
		key == val
	}
}
@anderseknert anderseknert added the bug Something isn't working label Mar 31, 2023
@vgramer vgramer self-assigned this Apr 3, 2023
@vgramer vgramer added the area/grammar issue or pr related to the grammar label Apr 10, 2023
@dsorak
Copy link

dsorak commented Mar 12, 2024

As of release 0.12.0, it seems to have trouble with the every syntax in general. The syntax highlighting/analysis fails to parse past the every statement and leaves the remainder of the file incorrectly highlighted.

@gitolicious
Copy link

Same here. The problem does not seem to be the every keyword itself though, but a multiline block within it. After a single line block, everything is still fine, see line 7-11 and the proper highlighting in line 13.

image

Same thing happens with some by the way, even though some is actually registered as a keyword.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/grammar issue or pr related to the grammar bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants