From 97fae8cc85352cceabbf84bcc7481c138eb8b666 Mon Sep 17 00:00:00 2001 From: Josh Wolfe Date: Sat, 23 Apr 2016 01:32:18 -0700 Subject: [PATCH] fix vim syntax highlighting for multiline strings --- doc/vim/syntax/zig.vim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/vim/syntax/zig.vim b/doc/vim/syntax/zig.vim index 9041a34373..18319002b8 100644 --- a/doc/vim/syntax/zig.vim +++ b/doc/vim/syntax/zig.vim @@ -51,8 +51,8 @@ syn match zigEscape display contained /\\\([nrt0\\'"]\|x\x\{2}\)/ syn match zigEscapeUnicode display contained /\\\(u\x\{4}\|U\x\{8}\)/ syn match zigEscapeUnicode display contained /\\u{\x\{1,6}}/ syn match zigStringContinuation display contained /\\\n\s*/ -syn region zigString start=+r\?c\?"+ skip=+\\\\\|\\"+ end=+"+ contains=zigEscape,zigEscapeUnicode,zigEscapeError,zigStringContinuation,@Spell -syn region zigString start='b\?r\z(#*\)"' end='"\z1' contains=@Spell +syn region zigString start=+c\?"+ skip=+\\\\\|\\"+ end=+"+ contains=zigEscape,zigEscapeUnicode,zigEscapeError,zigStringContinuation,@Spell +syn region zigString start='r"\z([^)]*\)(' end=')\z1"' contains=@Spell let b:current_syntax = "zig"