From 3f3a567de817cdc4b76a6ab7f595d018dbe3cfd0 Mon Sep 17 00:00:00 2001 From: Louis Pilfold Date: Tue, 16 Jan 2024 21:56:22 +0000 Subject: Multiline strings Closes https://github.com/gleam-lang/try-gleam/issues/3 --- static/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'static/index.js') diff --git a/static/index.js b/static/index.js index b6f2754..b2e1b45 100644 --- a/static/index.js +++ b/static/index.js @@ -23,7 +23,7 @@ const prismGrammar = { greedy: true, }, string: { - pattern: /"(?:\\(?:\r\n|[\s\S])|(?!")[^\\\r\n])*"/, + pattern: /"((?:[^"\\]|\\.)*)"/, greedy: true, }, module: { -- cgit v1.2.3