Skip to content

Commit 53cd777

Browse files
committed
fix issue with nested comments
1 parent 47fe798 commit 53cd777

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

syntax/kotlin.vim

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
" Vim syntax file
22
" Language: Kotlin
33
" Maintainer: Alexander Udalov
4-
" Latest Revision: 6 July 2014
4+
" Latest Revision: 15 July 2014
55

66
if exists("b:current_syntax")
77
finish
@@ -28,9 +28,9 @@ syn keyword ktConstant null
2828

2929
syn keyword ktModifier data inline volatile
3030

31-
syn keyword ktTodo contained TODO FIXME XXX
31+
syn keyword ktTodo TODO FIXME XXX contained
3232
syn match ktLineComment "//.*$" contains=ktTodo,@Spell
33-
syn region ktComment start="/\*" end="\*/" contains=ktComment,ktTodo,@Spell
33+
syn region ktComment matchgroup=ktCommentMatchGroup start="/\*" end="\*/" contains=ktComment,ktTodo,@Spell
3434

3535
syn match ktSpecialCharError "\v\\." contained
3636
syn match ktSpecialChar "\v\\([tbnr'"$\\]|u\x{4})" contained
@@ -77,6 +77,7 @@ hi link ktConstant Constant
7777
hi link ktTodo Todo
7878
hi link ktLineComment Comment
7979
hi link ktComment Comment
80+
hi link ktCommentMatchGroup Comment
8081

8182
hi link ktSpecialChar SpecialChar
8283
hi link ktSpecialCharError Error

0 commit comments

Comments
 (0)