From 0a00d164472646f9c358368b373e5ea0aece8133 Mon Sep 17 00:00:00 2001 From: thennothinghappened <35243139+thennothinghappened@users.noreply.github.com> Date: Sun, 15 Dec 2024 11:45:41 +1100 Subject: [PATCH] fix(gml) don't match string chars one by one --- src/languages/gml.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/languages/gml.js b/src/languages/gml.js index e161e6ca96..7a08977e4e 100644 --- a/src/languages/gml.js +++ b/src/languages/gml.js @@ -1170,14 +1170,14 @@ export default function(hljs) { variants: [ { begin: /\$"/, - end: "\"", + end: /\"/, beginScope: "string", endScope: "string", contains: [ STRING_ESCAPE, STRING_SUBSTITUTION, { - match: /[^\n"{]/, + match: /[^\n"{\\]+/, scope: "string" } ]