From 226f5277d493133338f87e5bf71bfffbf0aa7321 Mon Sep 17 00:00:00 2001 From: Simeon Simeonov Date: Mon, 11 May 2020 13:22:02 +0200 Subject: Update yaml-mode and make .emacs .emacs.pure and .emacs.termfix compliant with eachother --- .emacs.d/lisp/yaml-mode.el | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to '.emacs.d/lisp') diff --git a/.emacs.d/lisp/yaml-mode.el b/.emacs.d/lisp/yaml-mode.el index 66e41b3..6bd4000 100644 --- a/.emacs.d/lisp/yaml-mode.el +++ b/.emacs.d/lisp/yaml-mode.el @@ -284,7 +284,10 @@ that key is pressed to begin a block literal." ;; We're right after a quote that opens a string literal. ;; Skip over it (big speedup for long JSON strings). (goto-char (1- pt)) - (ignore-errors (forward-sexp))))))))) + (condition-case nil + (forward-sexp) + (scan-error + (goto-char end)))))))))) (defun yaml-font-lock-block-literals (bound) "Find lines within block literals. -- cgit v1.3