зеркало из https://github.com/github/ruby.git
* misc/ruby-mode.el (ruby-font-lock-keywords): highlight literal
hash key labels as symbols. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29972 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
62cd77327b
Коммит
05a0c30adc
|
@ -1,3 +1,8 @@
|
|||
Mon Nov 29 21:11:16 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||
|
||||
* misc/ruby-mode.el (ruby-font-lock-keywords): highlight literal
|
||||
hash key labels as symbols.
|
||||
|
||||
Mon Nov 29 18:31:31 2010 Martin Duerst <duerst@it.aoyama.ac.jp>
|
||||
|
||||
* test/ruby/test_transcode.rb (test_unicode_public_review_issue_121):
|
||||
|
|
|
@ -1392,6 +1392,7 @@ buffer position `limit' or the end of the buffer."
|
|||
;; symbols
|
||||
'("\\(^\\|[^:]\\)\\(:\\([-+~]@?\\|[/%&|^`]\\|\\*\\*?\\|<\\(<\\|=>?\\)?\\|>[>=]?\\|===?\\|=~\\|![~=]?\\|\\[\\]=?\\|\\(\\w\\|_\\)+\\([!?=]\\|\\b_*\\)\\|#{[^}\n\\\\]*\\(\\\\.[^}\n\\\\]*\\)*}\\)\\)"
|
||||
2 font-lock-reference-face)
|
||||
'("\\(^\\s *\\|[\[\{\(,]\\s *\\|\\sw\\s +\\)\\(\\(\\sw\\|_\\)+\\):[^:]" 2 font-lock-reference-face)
|
||||
;; expression expansion
|
||||
'("#\\({[^}\n\\\\]*\\(\\\\.[^}\n\\\\]*\\)*}\\|\\(\\$\\|@\\|@@\\)\\(\\w\\|_\\)+\\)"
|
||||
0 font-lock-variable-name-face t)
|
||||
|
|
Загрузка…
Ссылка в новой задаче