You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
forawait(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.
The text was updated successfully, but these errors were encountered:
Describe the issue
In the statement
for await (foo) {}
, the keywordawait
is being incorrectly highlighted as a function since 063876f (#3940).Which language seems to have the issue?
JavaScript
Are you using
highlight
orhighlightAuto
?highlight
Sample Code to Reproduce
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.
The text was updated successfully, but these errors were encountered: