diff --git a/src/parser.ts b/src/parser.ts index bed45bc..d9dc4d4 100644 --- a/src/parser.ts +++ b/src/parser.ts @@ -58,6 +58,9 @@ export const TemplateBlock = Sequence( AtLeast( 0, Choose( + Regex(/\\\n\s*/y) + .map(() => ({ text: " " })) + .expects("BACKSLASH"), BackslashEscape, Bracket, Regex(/[^\\\[]+/y)