Skip to content

Commit

Permalink
Ignore errors from forward-sexp inside haml-unnestable-tag-p
Browse files Browse the repository at this point in the history
  • Loading branch information
purcell committed Feb 6, 2014
1 parent 80025af commit ab763c0
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 @@ -675,7 +675,7 @@ See http://www.w3.org/TR/html-markup/syntax.html.")
(match-string 1))
(progn
(when (looking-at "[{(]")
(forward-sexp))
(ignore-errors (forward-sexp)))
(looking-at "\\(?:=\\|==\\| \\)[[:blank:]]*[^[:blank:]\r\n]+"))))))

(defun haml-indent-p ()
Expand Down

0 comments on commit ab763c0

Please sign in to comment.