mirror of
https://github.com/ziglang/zig.git
synced 2024-11-27 23:52:31 +00:00
fix vim syntax highlighting for multiline strings
This commit is contained in:
parent
4a7911e3eb
commit
97fae8cc85
@ -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"
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user