* misc/ruby-mode.el (ruby-forward-sexp): stop after literal hash

key labels.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29973 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2010-11-29 12:12:54 +00:00
Родитель 05a0c30adc
Коммит f4c909b965
2 изменённых файлов: 5 добавлений и 1 удалений

Просмотреть файл

@ -1,4 +1,7 @@
Mon Nov 29 21:11:16 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
Mon Nov 29 21:12:51 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
* misc/ruby-mode.el (ruby-forward-sexp): stop after literal hash
key labels.
* misc/ruby-mode.el (ruby-font-lock-keywords): highlight literal
hash key labels as symbols.

Просмотреть файл

@ -973,6 +973,7 @@ An end of a defun is found by moving forward from the beginning of one."
(condition-case nil
(while (> i 0)
(skip-syntax-forward " ")
(if (looking-at ",\\s *") (goto-char (match-end 0)))
(cond ((looking-at "\\?\\(\\\\[CM]-\\)*\\\\?\\S ")
(goto-char (match-end 0)))
((progn