mirror of
https://github.com/joaotavora/yasnippet.git
synced 2025-10-13 13:13:03 +00:00
Fix #618; save match data in yas--scan-sexps
* yasnippet.el (yas--scan-sexps): Save match data.
This commit is contained in:
parent
b6d924c83d
commit
72c6c4cd7b
@ -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'."
|
||||||
|
Loading…
x
Reference in New Issue
Block a user