diff options
author | Adam Stankiewicz <sheerun@sher.pl> | 2019-06-08 12:44:15 +0200 |
---|---|---|
committer | Adam Stankiewicz <sheerun@sher.pl> | 2019-06-08 12:44:15 +0200 |
commit | 671078ef6c851b688b63165761cec82f9f6e03f7 (patch) | |
tree | efde30baaf2ca21a09a35e1ccf1d2ff744482d2b /syntax/kotlin.vim | |
parent | aebef2c2e76b88384b1121c237c965e8cf8b3bcb (diff) | |
download | vim-polyglot-671078ef6c851b688b63165761cec82f9f6e03f7.tar.gz vim-polyglot-671078ef6c851b688b63165761cec82f9f6e03f7.zip |
Update
Diffstat (limited to 'syntax/kotlin.vim')
-rw-r--r-- | syntax/kotlin.vim | 80 |
1 files changed, 40 insertions, 40 deletions
diff --git a/syntax/kotlin.vim b/syntax/kotlin.vim index 5bef7152..8febe4d3 100644 --- a/syntax/kotlin.vim +++ b/syntax/kotlin.vim @@ -5,18 +5,16 @@ endif " Vim syntax file " Language: Kotlin " Maintainer: Alexander Udalov -" Latest Revision: 14 January 2019 +" Latest Revision: 26 May 2019 -if exists("b:current_syntax") +if exists('b:current_syntax') finish endif -let b:current_syntax = "kotlin" - syn keyword ktStatement break continue return syn keyword ktConditional if else when syn keyword ktRepeat do for while -syn keyword ktOperator as in is by +syn keyword ktOperator in is by syn keyword ktKeyword get set out super this where syn keyword ktException try catch finally throw @@ -33,6 +31,8 @@ syn keyword ktConstant null syn keyword ktModifier data tailrec lateinit reified external inline noinline crossinline const operator infix suspend +syn match ktOperator "\v\?:|::|\<\=? | \>\=?|[!=]\=\=?|<as>\??|[-!%&*+/|]" + syn keyword ktTodo TODO FIXME XXX contained syn match ktShebang "\v^#!.*$" syn match ktLineComment "\v//.*$" contains=ktTodo,@Spell @@ -69,48 +69,48 @@ syn match ktEscapedName "\v`.*`" syn match ktExclExcl "!!" syn match ktArrow "->" +hi def link ktStatement Statement +hi def link ktConditional Conditional +hi def link ktRepeat Repeat +hi def link ktOperator Operator +hi def link ktKeyword Keyword +hi def link ktException Exception +hi def link ktReservedKeyword Error +hi def link ktInclude Include -hi link ktStatement Statement -hi link ktConditional Conditional -hi link ktRepeat Repeat -hi link ktOperator Operator -hi link ktKeyword Keyword -hi link ktException Exception -hi link ktReservedKeyword Error - -hi link ktInclude Include +hi def link ktType Type +hi def link ktModifier StorageClass +hi def link ktStructure Structure +hi def link ktTypedef Typedef -hi link ktType Type -hi link ktModifier StorageClass -hi link ktStructure Structure -hi link ktTypedef Typedef +hi def link ktBoolean Boolean +hi def link ktConstant Constant -hi link ktBoolean Boolean -hi link ktConstant Constant +hi def link ktTodo Todo +hi def link ktShebang Comment +hi def link ktLineComment Comment +hi def link ktComment Comment +hi def link ktCommentMatchGroup Comment +hi def link ktDocComment Comment +hi def link ktDocTag Special +hi def link ktDocTagParam Identifier -hi link ktTodo Todo -hi link ktShebang Comment -hi link ktLineComment Comment -hi link ktComment Comment -hi link ktCommentMatchGroup Comment -hi link ktDocComment Comment -hi link ktDocTag Special -hi link ktDocTagParam Identifier +hi def link ktSpecialChar SpecialChar +hi def link ktSpecialCharError Error +hi def link ktString String +hi def link ktCharacter Character -hi link ktSpecialChar SpecialChar -hi link ktSpecialCharError Error -hi link ktString String -hi link ktCharacter Character +hi def link ktAnnotation Identifier +hi def link ktLabel Identifier -hi link ktAnnotation Identifier -hi link ktLabel Identifier +hi def link ktSimpleInterpolation Identifier +hi def link ktComplexInterpolationBrace Identifier -hi link ktSimpleInterpolation Identifier -hi link ktComplexInterpolationBrace Identifier +hi def link ktNumber Number +hi def link ktFloat Float -hi link ktNumber Number -hi link ktFloat Float +hi def link ktExclExcl Special +hi def link ktArrow Structure -hi link ktExclExcl Special -hi link ktArrow Structure +let b:current_syntax = 'kotlin' |