Closed travv0 closed 4 months ago
Possibly related: if a multi-line string literal ends with an empty line, everything after that line is highlighted as a string. Example:
const test_str =
\\I need the empty line
\\
;
Ah, you already fixed that. So nevermind :)
Yeah, I got that fixed but my emacs knowledge wasn't enough for me to figure this one out. It seems like the function currently used for highlighting multiline strings might be overkill since you'd think a simple regex would do the trick, but it seems like there's some sort of "priority" to what gets highlighted so when I tried to highlight based on a regex match, it only matched strings that didn't have highlighted keywords in them.
An example from std.os.windows, everything after the following line is highlighted as a string because it sees the end quote as escaped: