diff --git a/lib/rouge/lexers/kotlin.rb b/lib/rouge/lexers/kotlin.rb index cb993d47f6..08104daa3a 100644 --- a/lib/rouge/lexers/kotlin.rb +++ b/lib/rouge/lexers/kotlin.rb @@ -9,7 +9,7 @@ class Kotlin < RegexLexer desc "Kotlin Programming Language (http://kotlinlang.org)" tag 'kotlin' - filenames '*.kt' + filenames '*.kt', '*.kts' mimetypes 'text/x-kotlin' keywords = %w( diff --git a/spec/lexers/kotlin_spec.rb b/spec/lexers/kotlin_spec.rb index e7a17d8a41..5cef1c9a36 100644 --- a/spec/lexers/kotlin_spec.rb +++ b/spec/lexers/kotlin_spec.rb @@ -8,6 +8,7 @@ it 'guesses by filename' do assert_guess :filename => 'foo.kt' + assert_guess :filename => 'foo.kts' end it 'guesses by mimetype' do