aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/progmodes/ruby-mode.el
diff options
context:
space:
mode:
Diffstat (limited to 'lisp/progmodes/ruby-mode.el')
-rw-r--r--lisp/progmodes/ruby-mode.el8
1 files changed, 4 insertions, 4 deletions
diff --git a/lisp/progmodes/ruby-mode.el b/lisp/progmodes/ruby-mode.el
index a42a66dfa87..989c00365a0 100644
--- a/lisp/progmodes/ruby-mode.el
+++ b/lisp/progmodes/ruby-mode.el
@@ -1552,7 +1552,7 @@ See `font-lock-syntax-table'.")
1552 1 font-lock-function-name-face) 1552 1 font-lock-function-name-face)
1553 ;; keywords 1553 ;; keywords
1554 (cons (concat 1554 (cons (concat
1555 "\\(^\\|[^_:.@$]\\|\\.\\.\\)\\b\\(defined\\?\\|" 1555 "\\(^\\|[^.@$]\\|\\.\\.\\)\\_<\\(defined\\?\\|"
1556 (regexp-opt 1556 (regexp-opt
1557 '("alias_method" 1557 '("alias_method"
1558 "alias" 1558 "alias"
@@ -1602,7 +1602,7 @@ See `font-lock-syntax-table'.")
1602 `(,ruby-here-doc-beg-re 0 (unless (ruby-singleton-class-p (match-beginning 0)) 1602 `(,ruby-here-doc-beg-re 0 (unless (ruby-singleton-class-p (match-beginning 0))
1603 'font-lock-string-face)) 1603 'font-lock-string-face))
1604 ;; variables 1604 ;; variables
1605 '("\\(^\\|[^_:.@$]\\|\\.\\.\\)\\b\\(nil\\|self\\|true\\|false\\)\\>" 1605 '("\\(^\\|[^.@$]\\|\\.\\.\\)\\_<\\(nil\\|self\\|true\\|false\\)\\>"
1606 2 font-lock-variable-name-face) 1606 2 font-lock-variable-name-face)
1607 ;; symbols 1607 ;; symbols
1608 '("\\(^\\|[^:]\\)\\(:\\([-+~]@?\\|[/%&|^`]\\|\\*\\*?\\|<\\(<\\|=>?\\)?\\|>[>=]?\\|===?\\|=~\\|![~=]?\\|\\[\\]=?\\|@?\\(\\w\\|_\\)+\\([!?=]\\|\\b_*\\)\\|#{[^}\n\\\\]*\\(\\\\.[^}\n\\\\]*\\)*}\\)\\)" 1608 '("\\(^\\|[^:]\\)\\(:\\([-+~]@?\\|[/%&|^`]\\|\\*\\*?\\|<\\(<\\|=>?\\)?\\|>[>=]?\\|===?\\|=~\\|![~=]?\\|\\[\\]=?\\|@?\\(\\w\\|_\\)+\\([!?=]\\|\\b_*\\)\\|#{[^}\n\\\\]*\\(\\\\.[^}\n\\\\]*\\)*}\\)\\)"
@@ -1613,8 +1613,8 @@ See `font-lock-syntax-table'.")
1613 '("\\(\\$\\|@\\|@@\\)\\(\\w\\|_\\)+" 1613 '("\\(\\$\\|@\\|@@\\)\\(\\w\\|_\\)+"
1614 0 font-lock-variable-name-face) 1614 0 font-lock-variable-name-face)
1615 ;; constants 1615 ;; constants
1616 '("\\(^\\|[^_]\\)\\b\\([A-Z]+\\(\\w\\|_\\)*\\)" 1616 '("\\_<\\([A-Z]+\\(\\w\\|_\\)*\\)"
1617 2 font-lock-type-face) 1617 1 font-lock-type-face)
1618 '("\\(^\\s *\\|[\[\{\(,]\\s *\\|\\sw\\s +\\)\\(\\(\\sw\\|_\\)+\\):[^:]" 2 font-lock-constant-face) 1618 '("\\(^\\s *\\|[\[\{\(,]\\s *\\|\\sw\\s +\\)\\(\\(\\sw\\|_\\)+\\):[^:]" 2 font-lock-constant-face)
1619 ;; expression expansion 1619 ;; expression expansion
1620 '(ruby-match-expression-expansion 1620 '(ruby-match-expression-expansion