From a4e066dc1afd65e6ee828d06915e753a69bfaad8 Mon Sep 17 00:00:00 2001 From: Michael Schmidt Date: Thu, 25 Nov 2021 17:31:00 +0100 Subject: [PATCH] Added helpful links --- components/prism-kotlin.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/components/prism-kotlin.js b/components/prism-kotlin.js index 496b900f9f..451cd82bc1 100644 --- a/components/prism-kotlin.js +++ b/components/prism-kotlin.js @@ -34,6 +34,7 @@ }; Prism.languages.insertBefore('kotlin', 'string', { + // https://kotlinlang.org/spec/expressions.html#string-interpolation-expressions 'string-literal': [ { pattern: /"""(?:[^$]|\$(?:(?!\{)|\{[^{}]*\}))*?"""/, @@ -60,6 +61,7 @@ } ], 'char': { + // https://kotlinlang.org/spec/expressions.html#character-literals pattern: /'(?:[^'\\\r\n]|\\(.|u[a-fA-F0-9]{0,4}))'/, greedy: true }