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

Syntax highlighting for closure.requires(args) and closure.ensures(args) #17

Open
y1ca1 opened this issue Jul 21, 2023 · 0 comments
Open

Comments

@y1ca1
Copy link

y1ca1 commented Jul 21, 2023

Currently, verus-analyzer reserves the keyword requires and ensures so the special syntax for closure pre/post-condition on args is not well recognized:

image

It would be nice if this kind of valid Verus syntax can be recognized.

I guess the parser would need to introduce some more context-sensitivity/hack to get the correct syntax highlighting for these clauses.

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

1 participant