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
enh(cpp): Improve highlighting of unterminated raw strings
PR highlightjs#1897 switched C++ raw strings to use backreferences, however this
breaks souce files where raw strings are truncated. Like comments, it
would be preferable to highlight them.
- Add `on:begin` and `on:end` to allow more granular matching when
then end match is dynamic and based on a part of the begin match
- This deprecates the `endSameAsBegin` attribute. That attribute was
a very specific way to solve this problem, but now we have a much
more general solution in these added callbacks.
Also related: highlightjs#2259.
Co-authored-by: Josh Goebel <me@joshgoebel.com>
0 commit comments