1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* 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
parent 05a0c30adc
commit f4c909b965
2 changed files with 5 additions and 1 deletions

View file

@ -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 * misc/ruby-mode.el (ruby-font-lock-keywords): highlight literal
hash key labels as symbols. hash key labels as symbols.

View file

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