Skip to content

Commit 12ff8dc

Browse files
committed
Kotlin: Regexp simplification
1 parent 9726087 commit 12ff8dc

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

components/prism-kotlin.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020

2121
Prism.languages.insertBefore('kotlin', 'string', {
2222
'raw-string': {
23-
pattern: /(["'])\1\1[\s\S]*?\1{3}/,
23+
pattern: /("""|''')[\s\S]*?\1/,
2424
alias: 'string'
2525
// See interpolation below
2626
}

components/prism-kotlin.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)