emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] master 1bf7a4c 47/63: Fix field parsing in modes that use the `sy


From: Noam Postavsky
Subject: [elpa] master 1bf7a4c 47/63: Fix field parsing in modes that use the `syntax-table' property
Date: Mon, 17 Jul 2017 22:54:18 -0400 (EDT)

branch: master
commit 1bf7a4cbae76dea27c0ba5cc8f8579dc97a89caa
Author: Noam Postavsky <address@hidden>
Commit: Noam Postavsky <address@hidden>

    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'."



reply via email to

[Prev in Thread] Current Thread [Next in Thread]