Unfortunately, the normal syntax table rules don't seem to support multicharacter string delimiters such as Zig's \\ for multiline string literals. The solution is to use a syntax-propertize-function to mark the beginning \\ and ending newline as generic string delimiters.
Among other things, this change allows zig-mode to correctly apply font-lock-string-face to multiline string literals in Zig code.
Unfortunately, the normal syntax table rules don't seem to support multicharacter string delimiters such as Zig's
\\
for multiline string literals. The solution is to use asyntax-propertize-function
to mark the beginning\\
and ending newline as generic string delimiters.Among other things, this change allows
zig-mode
to correctly applyfont-lock-string-face
to multiline string literals in Zig code.