Skip to content

Commit

Permalink
Kotlin: add typealias keyword
Browse files Browse the repository at this point in the history
  • Loading branch information
ilaborie authored Jun 5, 2018
1 parent 435eb2e commit a21fdee
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions components/prism-kotlin.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
Prism.languages.kotlin = Prism.languages.extend('clike', {
'keyword': {
// The lookbehind prevents wrong highlighting of e.g. kotlin.properties.get
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/,
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/,
lookbehind: true
},
'function': [
Expand Down Expand Up @@ -59,4 +59,4 @@
interpolation: interpolation
};

}(Prism));
}(Prism));

0 comments on commit a21fdee

Please sign in to comment.