* yasnippet.el (yas--scan-sexps): Use ignore-errors.

This commit is contained in:
Noam Postavsky 2015-10-11 21:17:50 -04:00
parent ac3fe83247
commit b6d924c83d

View File

@ -4014,11 +4014,9 @@ with their evaluated value into `yas--backquote-markers-and-strings'."
(set-marker marker nil)))))
(defun yas--scan-sexps (from count)
(condition-case _
(with-syntax-table (standard-syntax-table)
(scan-sexps from count))
(error
nil)))
(ignore-errors
(with-syntax-table (standard-syntax-table)
(scan-sexps from count))))
(defun yas--make-marker (pos)
"Create a marker at POS with nil `marker-insertion-type'."