branch: elpa/yaml-mode commit 4377ee536271924424578642b73dc04994290663 Author: yoshiki <yoshiki@c9fe89ab-c918-0410-b9be-faebe9bd2962> Commit: yoshiki <yoshiki@c9fe89ab-c918-0410-b9be-faebe9bd2962>
Apply patch from k-nagano git-svn-id: http://svn.clouder.jp/repos/public/yaml-mode/branches/TEST-KNAGANO-PATCH@78 c9fe89ab-c918-0410-b9be-faebe9bd2962 --- yaml-mode.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/yaml-mode.el b/yaml-mode.el index 9232965..3b68299 100644 --- a/yaml-mode.el +++ b/yaml-mode.el @@ -112,7 +112,7 @@ that key is pressed to begin a block literal." (defconst yaml-blank-line-re "^ *$" "Regexp matching a line containing only (valid) whitespace.") -(defconst yaml-comment-re "\\(#*.*\\)" +(defconst yaml-comment-re "\\(?:^\\|\\s-+\\)\\(#.*\\)" "Regexp matching a line containing a YAML comment or delimiter.") (defconst yaml-directive-re "^\\(?:--- \\)? *%\\(\\w+\\)"