Closed
Description
Describe the issue
In the statement for await (foo) {}
, the keyword await
is being incorrectly highlighted as a function since 063876f (#3940).
Which language seems to have the issue?
JavaScript
Are you using highlight
or highlightAuto
?
highlight
Sample Code to Reproduce
for await (foo) {}
Expected behavior
for await
are both highlighted as keywords.
Additional context
I upgraded highlight.js and this stopped working. I bisected the problem to 063876f (#3940), but I don’t really understand the internals of highlight.js well enough to figure out why that code is being triggered in this position or what to do about it.