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

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

[nongnu] elpa/yaml-mode ac21293 097/124: Fix indent after comment line


From: ELPA Syncer
Subject: [nongnu] elpa/yaml-mode ac21293 097/124: Fix indent after comment line
Date: Sun, 29 Aug 2021 11:36:21 -0400 (EDT)

branch: elpa/yaml-mode
commit ac21293ee6d66bb04e0fc6ebc332ee038a5a3824
Author: Adam Hess <adamhess1991@gmail.com>
Commit: Adam Hess <adamhess1991@gmail.com>

    Fix indent after comment line
    
    Make sure that the nested indent line isn't actually a comment ending in a 
colon
---
 yaml-mode.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/yaml-mode.el b/yaml-mode.el
index 9f76c38..3393349 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]