mirror of
https://github.com/joaotavora/yasnippet.git
synced 2026-02-04 14:32:26 +00:00
Fix #618; save match data in yas--scan-sexps
* yasnippet.el (yas--scan-sexps): Save match data.
This commit is contained in:
@@ -4015,8 +4015,9 @@ with their evaluated value into `yas--backquote-markers-and-strings'."
|
|||||||
|
|
||||||
(defun yas--scan-sexps (from count)
|
(defun yas--scan-sexps (from count)
|
||||||
(ignore-errors
|
(ignore-errors
|
||||||
|
(save-match-data ; `scan-sexps' may modify match data.
|
||||||
(with-syntax-table (standard-syntax-table)
|
(with-syntax-table (standard-syntax-table)
|
||||||
(scan-sexps from count))))
|
(scan-sexps from count)))))
|
||||||
|
|
||||||
(defun yas--make-marker (pos)
|
(defun yas--make-marker (pos)
|
||||||
"Create a marker at POS with nil `marker-insertion-type'."
|
"Create a marker at POS with nil `marker-insertion-type'."
|
||||||
|
|||||||
Reference in New Issue
Block a user