Skip to content

Commit a21fdee

Browse files
authored
Kotlin: add typealias keyword
1 parent 435eb2e commit a21fdee

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

components/prism-kotlin.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
Prism.languages.kotlin = Prism.languages.extend('clike', {
33
'keyword': {
44
// The lookbehind prevents wrong highlighting of e.g. kotlin.properties.get
5-
pattern: /(^|[^.])\b(?:abstract|annotation|as|break|by|catch|class|companion|const|constructor|continue|crossinline|data|do|else|enum|final|finally|for|fun|get|if|import|in|init|inline|inner|interface|internal|is|lateinit|noinline|null|object|open|out|override|package|private|protected|public|reified|return|sealed|set|super|tailrec|this|throw|to|try|val|var|when|where|while)\b/,
5+
pattern: /(^|[^.])\b(?:abstract|annotation|as|break|by|catch|class|companion|const|constructor|continue|crossinline|data|do|else|enum|final|finally|for|fun|get|if|import|in|init|inline|inner|interface|internal|is|lateinit|noinline|null|object|open|out|override|package|private|protected|public|reified|return|sealed|set|super|tailrec|this|throw|to|try|typealias|val|var|when|where|while)\b/,
66
lookbehind: true
77
},
88
'function': [
@@ -59,4 +59,4 @@
5959
interpolation: interpolation
6060
};
6161

62-
}(Prism));
62+
}(Prism));

0 commit comments

Comments
 (0)