motiejus/dotfiles

Unnamed repository; edit this file 'description' to name the repository.
git clone https://git.jakstys.lt/motiejus/dotfiles.git
Log | Tree | Refs | README | LICENSE

commit 071fe9ec7f0f4ed1bd5fd4a821bb24df3c7c8336 (tree)
parent 785abd927b50db285d5e60ec6c010148c8c8605e
Author: Josh Wolfe <thejoshwolfe@gmail.com>
Date:   Wed, 11 Apr 2018 00:08:23 -0400

multiline string prefix fix doesn't work correctly

Diffstat:
Msyntax/zig.vim | 7+++----
1 file changed, 3 insertions(+), 4 deletions(-)

diff --git a/syntax/zig.vim b/syntax/zig.vim @@ -55,10 +55,9 @@ syn match zigCharacter /'\([^\\]\|\\\(.\|x\x\{2}\|u\x\{4}\|U\x\{6}\)\)'/ contain syn region zigCommentLine start="//" end="$" contains=zigTodo,@Spell syn region zigCommentLineDoc start="////\@!" end="$" contains=zigTodo,@Spell -" highlight the multiline string prefix characters in a different color than the string contents -syn match zigMultilineStringPrefix display /c\?\\\\/ -" the string contents starts just after the prefix -syn region zigMultilineString start="\%(c\?\\\\\)\@<=" end="$" +" TODO match only the first '\\' within the zigMultilineString as zigMultilineStringPrefix +syn match zigMultilineStringPrefix display contained /c\?\\\\/ +syn region zigMultilineString start="c\?\\\\" end="$" contains=zigMultilineStringPrefix syn keyword zigTodo contained TODO XXX