diff --git a/README.md b/README.md index a462a5f..5884e67 100644 --- a/README.md +++ b/README.md @@ -2,6 +2,16 @@ ## Installation +### [Vundle](https://github.com/gmarik/Vundle.vim) + +Add `Plugin 'udalov/kotlin-vim'` to your `~/.vimrc` and run `PluginInstall`. + +### [Pathogen](https://github.com/tpope/vim-pathogen) + + $ git clone https://github.com/udalov/kotlin-vim ~/.vim/bundle/ + +### Manual + 0. `mkdir -p ~/.vim/{syntax,indent,ftdetect}` 1. `cp syntax/kotlin.vim ~/.vim/syntax/kotlin.vim` 2. `cp indent/kotlin.vim ~/.vim/indent/kotlin.vim` diff --git a/syntax/kotlin.vim b/syntax/kotlin.vim index b1b3254..ebb2a9d 100644 --- a/syntax/kotlin.vim +++ b/syntax/kotlin.vim @@ -1,7 +1,7 @@ " Vim syntax file " Language: Kotlin " Maintainer: Alexander Udalov -" Latest Revision: 6 July 2014 +" Latest Revision: 15 July 2014 if exists("b:current_syntax") finish @@ -28,9 +28,9 @@ syn keyword ktConstant null syn keyword ktModifier data inline volatile -syn keyword ktTodo contained TODO FIXME XXX +syn keyword ktTodo TODO FIXME XXX contained syn match ktLineComment "//.*$" contains=ktTodo,@Spell -syn region ktComment start="/\*" end="\*/" contains=ktComment,ktTodo,@Spell +syn region ktComment matchgroup=ktCommentMatchGroup start="/\*" end="\*/" contains=ktComment,ktTodo,@Spell syn match ktSpecialCharError "\v\\." contained syn match ktSpecialChar "\v\\([tbnr'"$\\]|u\x{4})" contained @@ -77,6 +77,7 @@ hi link ktConstant Constant hi link ktTodo Todo hi link ktLineComment Comment hi link ktComment Comment +hi link ktCommentMatchGroup Comment hi link ktSpecialChar SpecialChar hi link ktSpecialCharError Error