summaryrefslogtreecommitdiff
path: root/.emacs.d
diff options
context:
space:
mode:
Diffstat (limited to '.emacs.d')
-rw-r--r--.emacs.d/lisp/yaml-mode.el5
1 files changed, 4 insertions, 1 deletions
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."
284 ;; We're right after a quote that opens a string literal. 284 ;; We're right after a quote that opens a string literal.
285 ;; Skip over it (big speedup for long JSON strings). 285 ;; Skip over it (big speedup for long JSON strings).
286 (goto-char (1- pt)) 286 (goto-char (1- pt))
287 (ignore-errors (forward-sexp))))))))) 287 (condition-case nil
288 (forward-sexp)
289 (scan-error
290 (goto-char end))))))))))
288 291
289(defun yaml-font-lock-block-literals (bound) 292(defun yaml-font-lock-block-literals (bound)
290 "Find lines within block literals. 293 "Find lines within block literals.