Skip to content

Commit 8019ea1

Browse files
committed
Add 'keepend' to "" and '' strings
With this change, Vim seems less prone to getting confused about hightlighting. No tests fail with this change, so I'm keeping it.
1 parent 694f86c commit 8019ea1

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

syntax/perl6.vim

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -432,7 +432,7 @@ syn region p6StringSQ
432432
\ skip="\\\@1<!\\'"
433433
\ end="'"
434434
\ contains=@p6Interp_q,p6EscQuote
435-
\ extend
435+
\ keepend extend
436436

437437
" "string"
438438
syn region p6StringDQ
@@ -441,7 +441,7 @@ syn region p6StringDQ
441441
\ skip=+\\\@1<!\\"+
442442
\ end=+"+
443443
\ contains=@p6Interp_qq,p6EscDoubleQuote
444-
\ extend
444+
\ keepend extend
445445

446446
" Q// and friends
447447

syntax/perl6.vim.pre

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -432,7 +432,7 @@ syn region p6StringSQ
432432
\ skip="\\\@1<!\\'"
433433
\ end="'"
434434
\ contains=@p6Interp_q,p6EscQuote
435-
\ extend
435+
\ keepend extend
436436

437437
" "string"
438438
syn region p6StringDQ
@@ -441,7 +441,7 @@ syn region p6StringDQ
441441
\ skip=+\\\@1<!\\"+
442442
\ end=+"+
443443
\ contains=@p6Interp_qq,p6EscDoubleQuote
444-
\ extend
444+
\ keepend extend
445445

446446
" Q// and friends
447447

0 commit comments

Comments
 (0)