From 31884d136fe18e402f8d1c83d68c005671a767c5 Mon Sep 17 00:00:00 2001 From: Simeon Simeonov Date: Wed, 10 Feb 2021 09:13:07 +0100 Subject: Update markdown-mode and yaml-mode --- .emacs.d/lisp/yaml-mode.el | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to '.emacs.d/lisp/yaml-mode.el') diff --git a/.emacs.d/lisp/yaml-mode.el b/.emacs.d/lisp/yaml-mode.el index 4914218..50d790b 100644 --- a/.emacs.d/lisp/yaml-mode.el +++ b/.emacs.d/lisp/yaml-mode.el @@ -7,7 +7,7 @@ ;; Maintainer: Vasilij Schneidermann ;; Package-Requires: ((emacs "24.1")) ;; Keywords: data yaml -;; Version: 0.0.14 +;; Version: 0.0.15 ;; This file is not part of Emacs @@ -117,7 +117,7 @@ that key is pressed to begin a block literal." ;; Constants -(defconst yaml-mode-version "0.0.14" "Version of `yaml-mode'.") +(defconst yaml-mode-version "0.0.15" "Version of `yaml-mode'.") (defconst yaml-blank-line-re "^ *$" "Regexp matching a line containing only (valid) whitespace.") @@ -151,7 +151,7 @@ that key is pressed to begin a block literal." "Regexp indicating the beginning of a scalar context.") (defconst yaml-nested-map-re - (concat "[^#]*: *\\(?:&.*\\|{ *\\|" yaml-tag-re " *\\)?$") + (concat "[^#\n]*: *\\(?:&.*\\|{ *\\|" yaml-tag-re " *\\)?$") "Regexp matching a line beginning a YAML nested structure.") (defconst yaml-block-literal-base-re " *[>|][-+0-9]* *\\(?:\n\\|\\'\\)" @@ -322,6 +322,8 @@ artificially limited to the value of (unless (looking-at yaml-blank-line-re) (setq min-level (min min-level (current-indentation)))) (forward-line -1)) + (when (looking-at-p " *- ") + (setq min-level (- min-level 2))) (cond ((and (< (current-indentation) min-level) (looking-at yaml-block-literal-re)) -- cgit v1.3