Skip to content

Support GHC 9.12 MultilineStrings - #1893

Open
jmcarthur wants to merge 2 commits into
haskell:masterfrom
jmcarthur:multiline-strings
Open

Support GHC 9.12 MultilineStrings#1893
jmcarthur wants to merge 2 commits into
haskell:masterfrom
jmcarthur:multiline-strings

Conversation

@jmcarthur

@jmcarthur jmcarthur commented Aug 19, 2026

Copy link
Copy Markdown

Fixes #1877.

This fixes the syntax highlighting and the indentation. Recognition is not conditional on the extension being used, the same way quasi-quotes are treated.

When it recognizes either """ or ", haskell-lexeme-looking-at-string-literal dispatches into a general scanner, haskell-lexeme--scan-string-literal, parameterized by the number of quotes (1 or 3) and by whether an unescaped newline should terminate the literal. haskell-syntax-propertize marks the extra delimiter quotes and any quotes inside the literal as punctuation, so the syntax parser sees one ordinary string spanning lines.

haskell-lexeme-looking-at-string-literal is now a dispatcher into
haskell-lexeme--scan-string-literal, which scans a literal delimited
by any number of double quotes, terminated or not by newlines.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add support for MultilineStrings extension

1 participant