Skip to content

Commit

Permalink
Handle numeric unquoted new-style attribute values, e.g. attr=10
Browse files Browse the repository at this point in the history
  • Loading branch information
purcell committed Oct 8, 2013
1 parent a9a23a0 commit fa15b1a
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 @@ -723,7 +723,7 @@ and BEG and END delimit that text in the buffer."
(haml-move "[ \t]*")
(when (haml-move "=")
(haml-move "[ \t]*")
(unless (looking-at "[\"'@a-z]") (return-from haml-parse-new-attr-hash))
(unless (looking-at "[\"'@a-z0-9]") (return-from haml-parse-new-attr-hash))
(let ((beg (point)))
(haml-limited-forward-sexp eol)
(funcall fn 'value beg (point)))
Expand Down

0 comments on commit fa15b1a

Please sign in to comment.