mirror of
https://github.com/udalov/kotlin-vim.git
synced 2025-12-17 12:00:17 +01:00
vimlint, add operators, use hi link def
This commit is contained in:
committed by
Alexander Udalov
parent
aea4336a1d
commit
0a900d06a2
@@ -1,4 +1,4 @@
|
|||||||
if exists("b:did_ftplugin") | finish | endif
|
if exists('b:did_ftplugin') | finish | endif
|
||||||
let b:did_ftplugin = 1
|
let b:did_ftplugin = 1
|
||||||
|
|
||||||
setlocal comments=://
|
setlocal comments=://
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
" Maintainer: Alexander Udalov
|
" Maintainer: Alexander Udalov
|
||||||
" Latest Revision: 15 July 2017
|
" Latest Revision: 15 July 2017
|
||||||
|
|
||||||
if exists("b:did_indent")
|
if exists('b:did_indent')
|
||||||
finish
|
finish
|
||||||
endif
|
endif
|
||||||
let b:did_indent = 1
|
let b:did_indent = 1
|
||||||
|
|||||||
@@ -3,11 +3,11 @@
|
|||||||
" Maintainer: Alexander Udalov
|
" Maintainer: Alexander Udalov
|
||||||
" Latest Revision: 14 January 2019
|
" Latest Revision: 14 January 2019
|
||||||
|
|
||||||
if exists("b:current_syntax")
|
if exists('b:current_syntax')
|
||||||
finish
|
finish
|
||||||
endif
|
endif
|
||||||
|
|
||||||
let b:current_syntax = "kotlin"
|
syn match ktOperator "\([-!%&\*\+./<=>\?\\^|:]\)"
|
||||||
|
|
||||||
syn keyword ktStatement break continue return
|
syn keyword ktStatement break continue return
|
||||||
syn keyword ktConditional if else when
|
syn keyword ktConditional if else when
|
||||||
@@ -65,48 +65,48 @@ syn match ktEscapedName "\v`.*`"
|
|||||||
syn match ktExclExcl "!!"
|
syn match ktExclExcl "!!"
|
||||||
syn match ktArrow "->"
|
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 def link ktType Type
|
||||||
hi link ktConditional Conditional
|
hi def link ktModifier StorageClass
|
||||||
hi link ktRepeat Repeat
|
hi def link ktStructure Structure
|
||||||
hi link ktOperator Operator
|
hi def link ktTypedef Typedef
|
||||||
hi link ktKeyword Keyword
|
|
||||||
hi link ktException Exception
|
|
||||||
hi link ktReservedKeyword Error
|
|
||||||
|
|
||||||
hi link ktInclude Include
|
hi def link ktBoolean Boolean
|
||||||
|
hi def link ktConstant Constant
|
||||||
|
|
||||||
hi link ktType Type
|
hi def link ktTodo Todo
|
||||||
hi link ktModifier StorageClass
|
hi def link ktShebang Comment
|
||||||
hi link ktStructure Structure
|
hi def link ktLineComment Comment
|
||||||
hi link ktTypedef Typedef
|
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 ktBoolean Boolean
|
hi def link ktSpecialChar SpecialChar
|
||||||
hi link ktConstant Constant
|
hi def link ktSpecialCharError Error
|
||||||
|
hi def link ktString String
|
||||||
|
hi def link ktCharacter Character
|
||||||
|
|
||||||
hi link ktTodo Todo
|
hi def link ktAnnotation Identifier
|
||||||
hi link ktShebang Comment
|
hi def link ktLabel Identifier
|
||||||
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 link ktSpecialChar SpecialChar
|
hi def link ktSimpleInterpolation Identifier
|
||||||
hi link ktSpecialCharError Error
|
hi def link ktComplexInterpolationBrace Identifier
|
||||||
hi link ktString String
|
|
||||||
hi link ktCharacter Character
|
|
||||||
|
|
||||||
hi link ktAnnotation Identifier
|
hi def link ktNumber Number
|
||||||
hi link ktLabel Identifier
|
hi def link ktFloat Float
|
||||||
|
|
||||||
hi link ktSimpleInterpolation Identifier
|
hi def link ktExclExcl Special
|
||||||
hi link ktComplexInterpolationBrace Identifier
|
hi def link ktArrow Structure
|
||||||
|
|
||||||
hi link ktNumber Number
|
let b:current_syntax = 'kotlin'
|
||||||
hi link ktFloat Float
|
|
||||||
|
|
||||||
hi link ktExclExcl Special
|
|
||||||
hi link ktArrow Structure
|
|
||||||
|
|||||||
Reference in New Issue
Block a user