The extension currently does not highlight keywords if,else,when,for,while,do,try,catch,throw,finally properly.
I have found this can be fixed by modifying the highlights.scm.
First, I noticed that the highlights.scm does not classify them as @keyword, but instead their own distinct classifications @conditional, @repeat, @exception
I have tested locally and found that if you add the tokens into the @keyword list and remove them from the @conditional,@repeat,@exception lists (and so removing those classifications entirely), syntax highlighting works.
This makes me suspect that the scheme file was incorrectly written, or that it relies on other parts of the extension that are not yet making use of the @conditional,@repeat,@exception identifiers. Why is it inconsistent with TypeScript's implementation?
The extension currently does not highlight keywords
if
,else
,when
,for
,while
,do
,try
,catch
,throw
,finally
properly.I have found this can be fixed by modifying the highlights.scm.
First, I noticed that the highlights.scm does not classify them as
@keyword
, but instead their own distinct classifications@conditional
,@repeat
,@exception
while the highlights.scm for TypeScript has all of them in the
@keyword
list and lacks@conditional
,@repeat
,@exception
classification's entirely.I have tested locally and found that if you add the tokens into the
@keyword
list and remove them from the@conditional
,@repeat
,@exception
lists (and so removing those classifications entirely), syntax highlighting works.This makes me suspect that the scheme file was incorrectly written, or that it relies on other parts of the extension that are not yet making use of the
@conditional
,@repeat
,@exception
identifiers. Why is it inconsistent with TypeScript's implementation?