Skip to content

Commit c7aee42

Browse files
committed
correctly highlight @"" identifiers
credit - ziglang@269048b
1 parent 9985705 commit c7aee42

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

syntax/zig.vim

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -248,6 +248,9 @@ syntax match zigEscapeError display contained /\\./
248248
syntax match zigEscape display contained /\\\([nrt\\'"]\|x\x\{2}\)/
249249
syntax match zigEscapeUnicode display contained /\\\(u\x\{4}\|U\x\{6}\)/
250250

251+
" Identifiers using the @"" syntax.
252+
syntax match zigIdentifierSpecial +@".*"+ display
253+
251254
highlight default link zigDecNumber zigNumber
252255
highlight default link zigHexNumber zigNumber
253256
highlight default link zigOctNumber zigNumber

0 commit comments

Comments
 (0)