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
The syntax highlighting in both those examples is way different. I'd guess you're ES6 example isn't loading Haskell and isn't actually using the Haskell grammar at all but rather some other grammar - that is resulting in the entirely different highlighting.
I'd guess you're ES6 example isn't loading Haskell
In this example I'm loading Haskell from the CDN but highlighting still seems to break after the '"'. If I remove '"' from the Haskell code in that example the highlighting works as expected.
Describe the issue
Haskell syntax highlighting is not always highlighting as expected.
I have a construction of char " which is '"' in haskell. But highlighter thinks it's the start of a string. (But it isn't).
Which language seems to have the issue?
Haskell
Are you using
highlight
orhighlightAuto
?hljs.highlightAll();
Sample Code to Reproduce
Codepen
(ES6 modules)
Expected behavior
-- some comment
should be treated as a comment, etc.(CommonJS via CDN)
Additional context
I used ES6 modules to reproduce the bug, everything seems to work correctly when using CommonJS via CDN.
The text was updated successfully, but these errors were encountered: