FUEL: need to catch and handle scan-error that forward-sexp can emit if there is no closing bracket
parent
b1b146e709
commit
d05363e1e8
|
@ -198,10 +198,12 @@ source/docs/tests file. When set to false, you'll be asked only once."
|
||||||
(when (re-search-forward "[ \n]([ \n]" limit t)
|
(when (re-search-forward "[ \n]([ \n]" limit t)
|
||||||
(backward-char 2)
|
(backward-char 2)
|
||||||
(let ((bracket-start (point)))
|
(let ((bracket-start (point)))
|
||||||
(forward-sexp)
|
(when (condition-case nil
|
||||||
|
(progn (forward-sexp) 't)
|
||||||
|
('scan-error nil))
|
||||||
(let ((bracket-stop (point)))
|
(let ((bracket-stop (point)))
|
||||||
(goto-char bracket-start)
|
(goto-char bracket-start)
|
||||||
(re-search-forward ".+" bracket-stop 'mv))))))
|
(re-search-forward ".+" bracket-stop 'mv)))))))
|
||||||
|
|
||||||
;; Excludes parsing words that are handled by other regexps
|
;; Excludes parsing words that are handled by other regexps
|
||||||
(defconst factor-parsing-words
|
(defconst factor-parsing-words
|
||||||
|
|
Loading…
Reference in New Issue