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

Keywords following if not highlighted #182

Open
anderseknert opened this issue May 26, 2024 · 1 comment
Open

Keywords following if not highlighted #182

anderseknert opened this issue May 26, 2024 · 1 comment

Comments

@anderseknert
Copy link
Member

While both some and every are keywords, they aren't highlighted when directly following an if.

Screenshot 2024-05-26 at 22 35 37

Perhaps it's more than what we could easily describe in static configuration, and semantic tokens would help here. Still filing this for tracking, whichever solution is the right one.

@charlieegan3
Copy link
Collaborator

Some more examples:

In this example:

package mypackage

import rego.v1

rule1 if not input.something

rule2 if input.foo

else if input.bar

it looks ok in the playground
Screenshot 2024-07-15 at 09 56 43

but not in vscode:

image_360

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants