branch: elpa/yaml-mode
commit 00ac9e5108048819a44c685dd921ed044f9be9af
Merge: 0b33131 ac21293
Author: Vasilij Schneidermann <[email protected]>
Commit: GitHub <[email protected]>
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\\|\\'\\)"