summaryrefslogtreecommitdiffstats
path: root/syntax/kotlin.vim
diff options
context:
space:
mode:
Diffstat (limited to 'syntax/kotlin.vim')
-rw-r--r--syntax/kotlin.vim6
1 files changed, 4 insertions, 2 deletions
diff --git a/syntax/kotlin.vim b/syntax/kotlin.vim
index 6797d4cf..9209255c 100644
--- a/syntax/kotlin.vim
+++ b/syntax/kotlin.vim
@@ -3,7 +3,7 @@ if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'kotlin') == -1
" Vim syntax file
" Language: Kotlin
" Maintainer: Alexander Udalov
-" Latest Revision: 23 December 2015
+" Latest Revision: 24 February 2016
if exists("b:current_syntax")
finish
@@ -32,7 +32,8 @@ syn keyword ktConstant null
syn keyword ktModifier data tailrec lateinit reified external inline noinline crossinline const operator infix
syn keyword ktTodo TODO FIXME XXX contained
-syn match ktLineComment "//.*$" contains=ktTodo,@Spell
+syn match ktShebang "\v^#!.*$"
+syn match ktLineComment "\v//.*$" contains=ktTodo,@Spell
syn region ktComment matchgroup=ktCommentMatchGroup start="/\*" end="\*/" contains=ktComment,ktTodo,@Spell
syn match ktSpecialCharError "\v\\." contained
@@ -81,6 +82,7 @@ hi link ktBoolean Boolean
hi link ktConstant Constant
hi link ktTodo Todo
+hi link ktShebang Comment
hi link ktLineComment Comment
hi link ktComment Comment
hi link ktCommentMatchGroup Comment