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
|
||||
|
||||
setlocal comments=://
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
" Maintainer: Alexander Udalov
|
||||
" Latest Revision: 15 July 2017
|
||||
|
||||
if exists("b:did_indent")
|
||||
if exists('b:did_indent')
|
||||
finish
|
||||
endif
|
||||
let b:did_indent = 1
|
||||
|
||||
@@ -3,11 +3,11 @@
|
||||
" Maintainer: Alexander Udalov
|
||||
" Latest Revision: 14 January 2019
|
||||
|
||||
if exists("b:current_syntax")
|
||||
if exists('b:current_syntax')
|
||||
finish
|
||||
endif
|
||||
|
||||
let b:current_syntax = "kotlin"
|
||||
syn match ktOperator "\([-!%&\*\+./<=>\?\\^|:]\)"
|
||||
|
||||
syn keyword ktStatement break continue return
|
||||
syn keyword ktConditional if else when
|
||||
@@ -65,48 +65,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 def link ktType Type
|
||||
hi def link ktModifier StorageClass
|
||||
hi def link ktStructure Structure
|
||||
hi def link ktTypedef Typedef
|
||||
|
||||
hi link ktInclude Include
|
||||
hi def link ktBoolean Boolean
|
||||
hi def link ktConstant Constant
|
||||
|
||||
hi link ktType Type
|
||||
hi link ktModifier StorageClass
|
||||
hi link ktStructure Structure
|
||||
hi link ktTypedef Typedef
|
||||
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 ktBoolean Boolean
|
||||
hi link ktConstant Constant
|
||||
hi def link ktSpecialChar SpecialChar
|
||||
hi def link ktSpecialCharError Error
|
||||
hi def link ktString String
|
||||
hi def link ktCharacter Character
|
||||
|
||||
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 ktAnnotation Identifier
|
||||
hi def link ktLabel Identifier
|
||||
|
||||
hi link ktSpecialChar SpecialChar
|
||||
hi link ktSpecialCharError Error
|
||||
hi link ktString String
|
||||
hi link ktCharacter Character
|
||||
hi def link ktSimpleInterpolation Identifier
|
||||
hi def link ktComplexInterpolationBrace Identifier
|
||||
|
||||
hi link ktAnnotation Identifier
|
||||
hi link ktLabel Identifier
|
||||
hi def link ktNumber Number
|
||||
hi def link ktFloat Float
|
||||
|
||||
hi link ktSimpleInterpolation Identifier
|
||||
hi link ktComplexInterpolationBrace Identifier
|
||||
hi def link ktExclExcl Special
|
||||
hi def link ktArrow Structure
|
||||
|
||||
hi link ktNumber Number
|
||||
hi link ktFloat Float
|
||||
|
||||
hi link ktExclExcl Special
|
||||
hi link ktArrow Structure
|
||||
let b:current_syntax = 'kotlin'
|
||||
|
||||
Reference in New Issue
Block a user