Skip to content

Commit

Permalink
Added helpful links
Browse files Browse the repository at this point in the history
  • Loading branch information
RunDevelopment committed Nov 25, 2021
1 parent b70f958 commit a4e066d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions components/prism-kotlin.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
};

Prism.languages.insertBefore('kotlin', 'string', {
// https://kotlinlang.org/spec/expressions.html#string-interpolation-expressions
'string-literal': [
{
pattern: /"""(?:[^$]|\$(?:(?!\{)|\{[^{}]*\}))*?"""/,
Expand All @@ -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
}
Expand Down

0 comments on commit a4e066d

Please sign in to comment.