Skip to content

Commit

Permalink
Anchor nested block regex to end of line
Browse files Browse the repository at this point in the history
  • Loading branch information
purcell committed Nov 24, 2012
1 parent 91fc941 commit 6d6522f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion haml-mode.el
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,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 "\\)\\([ \t]*\\(?:\n\\1 +[^\n]*\\)*\n?\\)"))
(concat "^\\([ \t]*\\)\\(" re "\\)\\([ \t]*\\(?:\n\\1 +[^\n]*\\)*\n?\\)$"))

(defconst haml-font-lock-keywords
`((haml-highlight-ruby-tag 1 font-lock-preprocessor-face)
Expand Down

0 comments on commit 6d6522f

Please sign in to comment.