-
Notifications
You must be signed in to change notification settings - Fork 133
Description
TS and JS Grammar Extension version: 0.0.41 / latest
I'd like to be able to highlight keywords that take you out of the normal flow of execution. By this I mean keywords that cause code to jump somewhere else when running. For example return
, throw
, break
, continue
.
Because these keywords take you out of the normal flow of execution they are very important, and not something you'd want to miss when scanning code, so I think it would be great if we could target them separately to ensure they aren't missed.
I'd like the ability to highlight them as more important when compared to other keywords such as if
, for
, while
, try
, catch
, etc.
Currently break
and continue
are in the same scope as for
, while
, do
, etc (keyword.control.loop
). And throw
is in the same scope as try
and catch
(keyword.control.trycatch
). Because of this it isn't possible to highlight them separately.
Example:
In the screenshot above I want to highlight continue
and throw
, but doing so also highlights for
, try
and catch
whereas I'd like those to remain grey.