Support multiple quotes at the end of raw strings

See https://github.com/JetBrains/kotlin/blob/1.2.0/compiler/frontend/src/org/jetbrains/kotlin/lexer/Kotlin.flex#L132

Fixes #10
This commit is contained in:
Alexander Udalov
2017-11-23 10:48:43 +01:00
parent 6f60b66bb4
commit cf0f4814b9

View File

@@ -1,7 +1,7 @@
" Vim syntax file
" Language: Kotlin
" Maintainer: Alexander Udalov
" Latest Revision: 18 September 2017
" Latest Revision: 23 November 2017
if exists("b:current_syntax")
finish
@@ -37,7 +37,7 @@ syn region ktComment matchgroup=ktCommentMatchGroup start="/\*" end="\*/" contai
syn match ktSpecialCharError "\v\\." contained
syn match ktSpecialChar "\v\\([tbnr'"$\\]|u\x{4})" contained
syn region ktString start='"' skip='\\"' end='"' contains=ktSimpleInterpolation,ktComplexInterpolation,ktSpecialChar,ktSpecialCharError
syn region ktString start='"""' end='"""' contains=ktSimpleInterpolation,ktComplexInterpolation,ktSpecialChar,ktSpecialCharError
syn region ktString start='"""' end='""""*' contains=ktSimpleInterpolation,ktComplexInterpolation,ktSpecialChar,ktSpecialCharError
syn match ktCharacter "\v'[^']*'" contains=ktSpecialChar,ktSpecialCharError
syn match ktCharacter "\v'\\''" contains=ktSpecialChar
syn match ktCharacter "\v'[^\\]'"