mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* misc/ruby-mode.el (ruby-font-lock-keywords): fontify
instance/class/global variables start with '_'. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2080 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
21d0c3b815
commit
4dd348b2b4
2 changed files with 8 additions and 3 deletions
|
@ -26,6 +26,11 @@ Sun Feb 17 18:10:09 2002 Nobuyoshi Nakada <nobu.nakada@nifty.ne.jp>
|
|||
|
||||
* class.c (rb_define_class_under): ditto.
|
||||
|
||||
Thu Feb 16 02:11:08 2002 Nobuyoshi Nakada <nobu.nakada@nifty.ne.jp>
|
||||
|
||||
* misc/ruby-mode.el (ruby-font-lock-keywords): fontify
|
||||
instance/class/global variables start with '_'.
|
||||
|
||||
Fri Feb 15 14:40:38 2002 Yukihiro Matsumoto <matz@ruby-lang.org>
|
||||
|
||||
* eval.c (rb_eval): replace rb_cvar_declare() by rb_cvar_set().
|
||||
|
|
|
@ -26,7 +26,7 @@
|
|||
)
|
||||
|
||||
(defconst ruby-modifier-re
|
||||
"if\\|unless\\|while\\|until"
|
||||
"if\\|unless\\|while\\|until\\|rescue"
|
||||
)
|
||||
|
||||
(defconst ruby-block-mid-re
|
||||
|
@ -856,7 +856,7 @@ An end of a defun is found by moving forward from the beginning of one."
|
|||
;; variables
|
||||
'("\\(\\$\\([^a-zA-Z0-9 \n]\\|[0-9]\\)\\)\\W"
|
||||
1 font-lock-variable-name-face)
|
||||
'("\\(\\$\\|@\\|@@\\)\\(\\w\\(\\w\\|_\\)*\\|#{\\)"
|
||||
'("\\(\\$\\|@\\|@@\\)\\(\\w\\|_\\)+"
|
||||
0 font-lock-variable-name-face)
|
||||
;; embedded document
|
||||
'(ruby-font-lock-docs
|
||||
|
@ -873,7 +873,7 @@ An end of a defun is found by moving forward from the beginning of one."
|
|||
'("\\(^\\|[^:]\\)\\(:\\([-+/%&|^~`]\\|\\*\\*?\\|<\\(<\\|=>?\\)?\\|>[>=]?\\|===?\\|=~\\|\\[\\]\\|\\(\\w\\|_\\)+\\([!?=]\\|\\b\\)\\|#{[^}\n\\\\]*\\(\\\\.[^}\n\\\\]*\\)*}\\)\\)"
|
||||
2 font-lock-reference-face)
|
||||
;; expression expansion
|
||||
'("#{[^}\n\\\\]*\\(\\\\.[^}\n\\\\]*\\)*}"
|
||||
'("#\\({[^}\n\\\\]*\\(\\\\.[^}\n\\\\]*\\)*}\\|\\(\\$\\|@\\|@@\\)\\(\\w\\|_\\)+\\)"
|
||||
0 font-lock-variable-name-face t))
|
||||
"*Additional expressions to highlight in ruby mode."))
|
||||
|
||||
|
|
Loading…
Reference in a new issue