File tree Expand file tree Collapse file tree 2 files changed +14
-3
lines changed Expand file tree Collapse file tree 2 files changed +14
-3
lines changed Original file line number Diff line number Diff line change 2
2
3
3
## Installation
4
4
5
+ ### [ Vundle] ( https://github.com/gmarik/Vundle.vim )
6
+
7
+ Add ` Plugin 'udalov/kotlin-vim' ` to your ` ~/.vimrc ` and run ` PluginInstall ` .
8
+
9
+ ### [ Pathogen] ( https://github.com/tpope/vim-pathogen )
10
+
11
+ $ git clone https://github.com/udalov/kotlin-vim ~/.vim/bundle/
12
+
13
+ ### Manual
14
+
5
15
0 . ` mkdir -p ~/.vim/{syntax,indent,ftdetect} `
6
16
1 . ` cp syntax/kotlin.vim ~/.vim/syntax/kotlin.vim `
7
17
2 . ` cp indent/kotlin.vim ~/.vim/indent/kotlin.vim `
Original file line number Diff line number Diff line change 1
1
" Vim syntax file
2
2
" Language: Kotlin
3
3
" Maintainer: Alexander Udalov
4
- " Latest Revision: 6 July 2014
4
+ " Latest Revision: 15 July 2014
5
5
6
6
if exists (" b:current_syntax" )
7
7
finish
@@ -28,9 +28,9 @@ syn keyword ktConstant null
28
28
29
29
syn keyword ktModifier data inline volatile
30
30
31
- syn keyword ktTodo contained TODO FIXME XXX
31
+ syn keyword ktTodo TODO FIXME XXX contained
32
32
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
34
34
35
35
syn match ktSpecialCharError " \v\\ ." contained
36
36
syn match ktSpecialChar " \v\\ ([tbnr'"$\\ ]|u\x {4})" contained
@@ -77,6 +77,7 @@ hi link ktConstant Constant
77
77
hi link ktTodo Todo
78
78
hi link ktLineComment Comment
79
79
hi link ktComment Comment
80
+ hi link ktCommentMatchGroup Comment
80
81
81
82
hi link ktSpecialChar SpecialChar
82
83
hi link ktSpecialCharError Error
You can’t perform that action at this time.
0 commit comments