Skip to content

catch is not highlighted in try/catch #671

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

Closed
mxthevs opened this issue Jan 2, 2023 · 1 comment · Fixed by #677
Closed

catch is not highlighted in try/catch #671

mxthevs opened this issue Jan 2, 2023 · 1 comment · Fixed by #677

Comments

@mxthevs
Copy link

mxthevs commented Jan 2, 2023

try is highlighted, catch isn't.

I know catch is not a reserved keyword, but i think it should be highlighted when using it in a try/catch block.

image

In JavaScript, catch is highlighted.

image

Can semantic highlighting take care of this?

@cristianoc
Copy link
Collaborator

Can be handled the same way async is handled in #603: set to highlighting in the grammar, and semantic highlighting can take care of it when it's used as a variable.

cristianoc added a commit that referenced this issue Jan 5, 2023
cristianoc added a commit that referenced this issue Jan 5, 2023
cristianoc added a commit that referenced this issue Jan 5, 2023
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

Successfully merging a pull request may close this issue.

2 participants