From 1bf7a4cbae76dea27c0ba5cc8f8579dc97a89caa Mon Sep 17 00:00:00 2001 From: Noam Postavsky Date: Wed, 10 May 2017 19:55:29 -0400 Subject: [PATCH] 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. --- yasnippet.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/yasnippet.el b/yasnippet.el index a3a1eaa..fbdb461 100644 --- a/yasnippet.el +++ b/yasnippet.el @@ -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'."