Function: zig-ts--syntax-propertize
zig-ts--syntax-propertize is a natively compiled function defined in
zig-ts-mode.el.
Signature
(zig-ts--syntax-propertize BEG END)
Documentation
Mark Zig multiline string lines between BEG and END as strings.
Source Code
;; Defined in /nix/store/jxyx97fhclw4jb395hn97pz60n2rh0hs-emacs-packages-deps/share/emacs/site-lisp/elpa/zig-ts-mode-20260921.1554/zig-ts-mode.el
;;;; Fill paragraph
(defun zig-ts--syntax-propertize (beg end)
"Mark Zig multiline string lines between BEG and END as strings."
(goto-char beg)
(while (search-forward "\\\\" end t)
(let ((start (- (point) 2)))
(when (equal (treesit-node-type (treesit-node-at start))
"multiline_string")
(let ((eol (line-end-position)))
;; Quotes and backslashes inside a multiline string are literal.
(put-text-property start eol 'syntax-table (string-to-syntax "."))
(put-text-property start (1+ start) 'syntax-table (string-to-syntax "|"))
(when (< eol (point-max))
(put-text-property eol (1+ eol) 'syntax-table (string-to-syntax "|"))))
(goto-char (line-end-position))))))