(modify-syntax-entry ?~ "." table)
(modify-syntax-entry ?_ "_" table)
(modify-syntax-entry ?| "." table)
+ (modify-syntax-entry ?\\ "\\" table)
(modify-syntax-entry ?\' "\"" table)
(modify-syntax-entry ?` "\"" table)
(modify-syntax-entry ?% "<" table)
(let ((case-fold-search nil))
(funcall
(syntax-propertize-rules
+ ((rx (group-n 1 "\\") anychar)
+ (1 (unless (save-excursion (nth 8 (syntax-ppss (match-beginning 0))))
+ (string-to-syntax "."))))
((rx bow (group-n 1 "0'" anychar))
(1 (unless (save-excursion (nth 8 (syntax-ppss (match-beginning 0))))
(string-to-syntax "w"))))
- ((rx bow (group-n 1 "!") eow)
+ ((rx bow (group-n 1 "!"))
(1 (unless (save-excursion (nth 8 (syntax-ppss (match-beginning 0))))
(string-to-syntax "w")))))
start end)))