branch: elpa/yaml-mode commit ac21293ee6d66bb04e0fc6ebc332ee038a5a3824 Author: Adam Hess <adamhess1...@gmail.com> Commit: Adam Hess <adamhess1...@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\\|\\'\\)"