emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[nongnu] elpa/yaml-mode 00ac9e5 116/124: Merge pull request #67 from HPa


From: ELPA Syncer
Subject: [nongnu] elpa/yaml-mode 00ac9e5 116/124: Merge pull request #67 from HParker/fix-comment-indent
Date: Sun, 29 Aug 2021 11:36:24 -0400 (EDT)

branch: elpa/yaml-mode
commit 00ac9e5108048819a44c685dd921ed044f9be9af
Merge: 0b33131 ac21293
Author: Vasilij Schneidermann <mail@vasilij.de>
Commit: GitHub <noreply@github.com>

    Merge pull request #67 from HParker/fix-comment-indent
    
    Fix indent after comment line
---
 yaml-mode.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/yaml-mode.el b/yaml-mode.el
index 3424e1d..4914218 100644
--- a/yaml-mode.el
+++ b/yaml-mode.el
@@ -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 "[^#]*: *\\(?:&.*\\|{ *\\|" yaml-tag-re " *\\)?$")
   "Regexp matching a line beginning a YAML nested structure.")
 
 (defconst yaml-block-literal-base-re " *[>|][-+0-9]* *\\(?:\n\\|\\'\\)"



reply via email to

[Prev in Thread] Current Thread [Next in Thread]