mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-03-06 05:52:32 -08:00
* lisp/progmodes/ruby-mode.el (ruby-font-lock-keywords): Highlight
conversion methods on Kernel.
This commit is contained in:
parent
2cdb769811
commit
2ce3c56586
2 changed files with 10 additions and 0 deletions
|
|
@ -1,3 +1,8 @@
|
|||
2013-07-13 Dmitry Gutov <dgutov@yandex.ru>
|
||||
|
||||
* progmodes/ruby-mode.el (ruby-font-lock-keywords): Highlight
|
||||
conversion methods on Kernel.
|
||||
|
||||
2013-07-13 Alan Mackenzie <acm@muc.de>
|
||||
|
||||
* progmodes/cc-engine.el (c-forward-decl-or-cast-1): Label CASE 13
|
||||
|
|
|
|||
|
|
@ -1851,6 +1851,11 @@ See `font-lock-syntax-table'.")
|
|||
'("\\(?:\\_<\\|::\\)\\([A-Z]+\\(\\w\\|_\\)*\\)"
|
||||
1 (unless (eq ?\( (char-after)) font-lock-type-face))
|
||||
'("\\(^\\s *\\|[\[\{\(,]\\s *\\|\\sw\\s +\\)\\(\\(\\sw\\|_\\)+\\):[^:]" 2 font-lock-constant-face)
|
||||
;; conversion methods on Kernel
|
||||
(list (concat "\\(?:^\\|[^.@$]\\|\\.\\.\\)"
|
||||
(regexp-opt '("Array" "Complex" "Float" "Hash"
|
||||
"Integer" "Rational" "String") 'symbols))
|
||||
1 font-lock-builtin-face)
|
||||
;; expression expansion
|
||||
'(ruby-match-expression-expansion
|
||||
2 font-lock-variable-name-face t)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue