Skip to content

Commit

Permalink
Allow trailing whitespace after filter instruction
Browse files Browse the repository at this point in the history
Refs nex3#13
  • Loading branch information
dgutov authored and purcell committed Nov 19, 2012
1 parent 2c5af0d commit 1cb0127
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion haml-mode.el
Expand Up @@ -89,7 +89,7 @@ be matched by a regexp in this list.")
(defun haml-nested-regexp (re)
"Create a regexp to match a block starting with RE.
The line containing RE is matched, as well as all lines indented beneath it."
(concat "^\\([ \t]*\\)" re "\\(\n\\(?:\\(?:\\1 .*\\| *\\)\n\\)*\\(?:\\1 .*\\| *\\)?\\)?"))
(concat "^\\([ \t]*\\)" re "[ \t]*\\(\n\\(?:\\(?:\\1 .*\\| *\\)\n\\)*\\(?:\\1 .*\\| *\\)?\\)?"))

(defconst haml-font-lock-keywords
`((,(haml-nested-regexp "\\(?:-#\\|/\\).*") 0 font-lock-comment-face)
Expand Down

0 comments on commit 1cb0127

Please sign in to comment.