Skip to content

Commit

Permalink
Add suspend keyword to Kotlin lexer (#1055)
Browse files Browse the repository at this point in the history
Since Kotlin coroutines are no longer experimental, `suspend` should be 
a highlighted keyword.
  • Loading branch information
Pitel authored and pyrmont committed May 29, 2019
1 parent 273de5e commit fa1ef1c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/rouge/lexers/kotlin.rb
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@ class Kotlin < RegexLexer
external false final finally for fun get if import in infix
inline inner interface internal is lateinit noinline null
object open operator out override package private protected
public reified return sealed set super tailrec this throw
true try typealias typeof val var vararg when where while
yield
public reified return sealed set super suspend tailrec this
throw true try typealias typeof val var vararg when where
while yield
)

name = %r'@?[_\p{Lu}\p{Ll}\p{Lt}\p{Lm}\p{Nl}][\p{Lu}\p{Ll}\p{Lt}\p{Lm}\p{Nl}\p{Nd}\p{Pc}\p{Cf}\p{Mn}\p{Mc}]*'
Expand Down

0 comments on commit fa1ef1c

Please sign in to comment.