From fe76622a0cfa0b711e8aabe9ecb1fd4b19c6455b Mon Sep 17 00:00:00 2001 From: Martin Jonson <88532439+Crustum7@users.noreply.github.com> Date: Tue, 6 Aug 2024 17:08:11 +0200 Subject: [PATCH] #3722 fix Kotlin multiline comment in string bug --- components/prism-kotlin.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/components/prism-kotlin.js b/components/prism-kotlin.js index 3b45dcbf57..53a0abe2f6 100644 --- a/components/prism-kotlin.js +++ b/components/prism-kotlin.js @@ -45,7 +45,8 @@ inside: interpolationInside }, 'string': /[\s\S]+/ - } + }, + greedy: true }, { pattern: /"(?:[^"\\\r\n$]|\\.|\$(?:(?!\{)|\{[^{}]*\}))*"/, @@ -57,7 +58,8 @@ inside: interpolationInside }, 'string': /[\s\S]+/ - } + }, + greedy: true } ], 'char': {