зеркало из https://github.com/github/ruby.git
* 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:
Родитель
05a0c30adc
Коммит
f4c909b965
|
@ -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
|
||||
|
|
Загрузка…
Ссылка в новой задаче