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
I managed to find a case where template string highlighting doesn't "end" properly. Here's the minimal reproduction I was able to boil it down to (tested via https://codemirror.net/mode/javascript/index.html):
fn({
...blah,});constc=`b${c.d}`;// ^ semi-colon onwards is "red"constd='foo';
It seems to specifically be the combo of a function call, object, destructuring and the dangling comma. Removing any of those parts the highlighting works correctly.
The text was updated successfully, but these errors were encountered:
I managed to find a case where template string highlighting doesn't "end" properly. Here's the minimal reproduction I was able to boil it down to (tested via https://codemirror.net/mode/javascript/index.html):
It seems to specifically be the combo of a function call, object, destructuring and the dangling comma. Removing any of those parts the highlighting works correctly.
The text was updated successfully, but these errors were encountered: