Skip to content

Commit

Permalink
Use 1+ and 1- in haml-highlight-interpolation
Browse files Browse the repository at this point in the history
  • Loading branch information
purcell committed Dec 21, 2012
1 parent 352ba57 commit 89e8721
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions haml-mode.el
Original file line number Diff line number Diff line change
Expand Up @@ -337,9 +337,9 @@ LIMIT works as it does in `re-search-forward'."
(forward-char -1)
(let ((beg (point)))
(haml-limited-forward-sexp limit)
(haml-fontify-region-as-ruby (+ 1 beg) (point)))
(haml-fontify-region-as-ruby (1+ beg) (point)))
(when (eq (char-before) ?\})
(put-text-property (- (point) 1) (point)
(put-text-property (1- (point)) (point)
'face font-lock-variable-name-face))
t)))

Expand Down

0 comments on commit 89e8721

Please sign in to comment.