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': {