Commit ffa2df72 authored by Dmitry Gutov's avatar Dmitry Gutov
Browse files

* lisp/progmodes/ruby-mode.el (ruby-smie--forward-token)

(ruby-smie--backward-token): Only consider full-string matches.
parent 5b97b4c0
2013-11-08 Dmitry Gutov <dgutov@yandex.ru>
* progmodes/ruby-mode.el (ruby-smie--forward-token)
(ruby-smie--backward-token): Only consider full-string matches.
2013-11-08 Jan Djärv <jan.h.d@swipnet.se>
* faces.el (describe-face): Add distant-foreground.
......
......@@ -438,7 +438,7 @@ explicitly declared in magic comment."
((member tok '("unless" "if" "while" "until"))
(if (save-excursion (forward-word -1) (ruby-smie--bosp))
tok "iuwu-mod"))
((string-match "|[*&]?" tok)
((string-match-p "\\`|[*&]?\\'" tok)
(forward-char (- 1 (length tok)))
(setq tok "|")
(if (ruby-smie--opening-pipe-p) "opening-|" tok))
......@@ -482,7 +482,7 @@ explicitly declared in magic comment."
tok "iuwu-mod"))
((equal tok "|")
(if (ruby-smie--opening-pipe-p) "opening-|" tok))
((string-match-p "|[*&]" tok)
((string-match-p "\\`|[*&]\\'" tok)
(forward-char 1)
(substring tok 1))
((and (equal tok "") (eq ?\\ (char-before)) (looking-at "\n"))
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment