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
When using statements inside an array (square brackets), like using if or while statements within an array of functions, then the syntax highlighting breaks.
Here's how this sample example should look:
But when the same function is part of an array, syntax highlighting breaks at the if statement:
Look what happens if I remove the left angle bracket from the if statement below:
When using statements inside an array (square brackets), like using
if
orwhile
statements within an array of functions, then the syntax highlighting breaks.Here's how this sample example should look:
But when the same function is part of an array, syntax highlighting breaks at the
if
statement:Look what happens if I remove the left angle bracket from the
if
statement below:Even in ES6 syntax version it breaks:
Here's the sample code for quick test:
The text was updated successfully, but these errors were encountered: