]> code.delx.au - gnu-emacs/blobdiff - lisp/progmodes/ruby-mode.el
Backport: ruby-mode: Change faces used for self, true, false and nil
[gnu-emacs] / lisp / progmodes / ruby-mode.el
index 9c311cdbfb60f8adb5a300fc59d1255bd15c5cf1..e15105eb332f6a0a44b3c7db808d2d4d14648cbd 100644 (file)
@@ -2013,8 +2013,9 @@ See `font-lock-syntax-table'.")
           "rescue"
           "retry"
           "return"
-          "then"
+          "self"
           "super"
+          "then"
           "unless"
           "undef"
           "until"
@@ -2109,8 +2110,8 @@ See `font-lock-syntax-table'.")
     "\\_<\\(?:BEGIN\\|END\\)\\_>\\|^__END__$"
     ;; Variables.
     (,(concat ruby-font-lock-keyword-beg-re
-              "\\_<\\(nil\\|self\\|true\\|false\\)\\_>")
-     1 font-lock-variable-name-face)
+              "\\_<\\(nil\\|true\\|false\\)\\_>")
+     1 font-lock-constant-face)
     ;; Keywords that evaluate to certain values.
     ("\\_<__\\(?:LINE\\|ENCODING\\|FILE\\)__\\_>"
      (0 font-lock-builtin-face))