Fix field parsing in modes that use the `syntax-table' property

* yasnippet.el (yas--indent-parse-create): Let-bind
`parse-sexp-lookup-properties' to nil.
This commit is contained in:
Noam Postavsky 2017-05-10 19:55:29 -04:00
parent 0f6d82feae
commit 1bf7a4cbae

View File

@ -4351,7 +4351,8 @@ with their evaluated value into `yas--backquote-markers-and-strings'."
(ignore-errors
(save-match-data ; `scan-sexps' may modify match data.
(with-syntax-table (standard-syntax-table)
(scan-sexps from count)))))
(let ((parse-sexp-lookup-properties nil))
(scan-sexps from count))))))
(defun yas--make-marker (pos)
"Create a marker at POS with nil `marker-insertion-type'."