Skip to content

Commit

Permalink
Fixed regexp which caused font-lock hangs when "#" in first column af…
Browse files Browse the repository at this point in the history
…ter blank lines

Example:

```
#

#

```
  • Loading branch information
purcell committed Nov 28, 2012
1 parent c634745 commit 8fe3c10
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 @@ -256,7 +256,7 @@ For example, this will highlight all of the following:
(forward-char -1)

;; Highlight tag, classes, and ids
(while (haml-move "\\([.#%]\\)[a-z0-9_:\\-]+")
(while (haml-move "\\([.#%]\\)[a-z0-9_:\\-]*")
(put-text-property (match-beginning 0) (match-end 0) 'font-lock-face
(case (char-after (match-beginning 1))
(?% font-lock-function-name-face)
Expand Down

0 comments on commit 8fe3c10

Please sign in to comment.