Skip to content

Support GHC 9.12 MultilineStrings - #1893

Merged
purcell merged 2 commits into
haskell:masterfrom
jmcarthur:multiline-strings
Aug 29, 2026
Merged

Support GHC 9.12 MultilineStrings#1893
purcell merged 2 commits into
haskell:masterfrom
jmcarthur:multiline-strings

Conversation

@jmcarthur

@jmcarthur jmcarthur commented Aug 19, 2026

Copy link
Copy Markdown
Contributor

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.
@webdevred

Copy link
Copy Markdown
Collaborator

Looks good.

@purcell
purcell merged commit d252d4a into haskell:master Aug 29, 2026
12 checks passed
@purcell

purcell commented Aug 29, 2026

Copy link
Copy Markdown
Member

Thanks, merged! 🎉

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

3 participants