mirror of
https://github.com/joaotavora/yasnippet.git
synced 2025-10-13 21:13:04 +00:00
* yasnippet.el (yas--scan-sexps): Use ignore-errors.
This commit is contained in:
parent
ac3fe83247
commit
b6d924c83d
@ -4014,11 +4014,9 @@ with their evaluated value into `yas--backquote-markers-and-strings'."
|
|||||||
(set-marker marker nil)))))
|
(set-marker marker nil)))))
|
||||||
|
|
||||||
(defun yas--scan-sexps (from count)
|
(defun yas--scan-sexps (from count)
|
||||||
(condition-case _
|
(ignore-errors
|
||||||
(with-syntax-table (standard-syntax-table)
|
(with-syntax-table (standard-syntax-table)
|
||||||
(scan-sexps from count))
|
(scan-sexps from count))))
|
||||||
(error
|
|
||||||
nil)))
|
|
||||||
|
|
||||||
(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