diff options
Diffstat (limited to 'lisp')
| -rw-r--r-- | lisp/ChangeLog | 6 | ||||
| -rw-r--r-- | lisp/progmodes/ruby-mode.el | 7 |
2 files changed, 10 insertions, 3 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 60f5dfcdb7c..5f26239ecdc 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,9 @@ | |||
| 1 | 2015-03-08 Dmitry Gutov <dgutov@yandex.ru> | ||
| 2 | |||
| 3 | * progmodes/ruby-mode.el (ruby-font-lock-keywords): Use | ||
| 4 | `font-lock-constant-face' for nil, true and false. Highlight | ||
| 5 | `self' as a keyword. (Bug#17733) | ||
| 6 | |||
| 1 | 2015-03-08 Nobuyoshi Nakada <nobu@ruby-lang.org> | 7 | 2015-03-08 Nobuyoshi Nakada <nobu@ruby-lang.org> |
| 2 | 8 | ||
| 3 | * progmodes/ruby-mode.el (ruby-syntax-before-regexp-re): Expect | 9 | * progmodes/ruby-mode.el (ruby-syntax-before-regexp-re): Expect |
diff --git a/lisp/progmodes/ruby-mode.el b/lisp/progmodes/ruby-mode.el index 4307109f654..4abc413f636 100644 --- a/lisp/progmodes/ruby-mode.el +++ b/lisp/progmodes/ruby-mode.el | |||
| @@ -2053,8 +2053,9 @@ See `font-lock-syntax-table'.") | |||
| 2053 | "rescue" | 2053 | "rescue" |
| 2054 | "retry" | 2054 | "retry" |
| 2055 | "return" | 2055 | "return" |
| 2056 | "then" | 2056 | "self" |
| 2057 | "super" | 2057 | "super" |
| 2058 | "then" | ||
| 2058 | "unless" | 2059 | "unless" |
| 2059 | "undef" | 2060 | "undef" |
| 2060 | "until" | 2061 | "until" |
| @@ -2149,8 +2150,8 @@ See `font-lock-syntax-table'.") | |||
| 2149 | "\\_<\\(?:BEGIN\\|END\\)\\_>\\|^__END__$" | 2150 | "\\_<\\(?:BEGIN\\|END\\)\\_>\\|^__END__$" |
| 2150 | ;; Variables. | 2151 | ;; Variables. |
| 2151 | (,(concat ruby-font-lock-keyword-beg-re | 2152 | (,(concat ruby-font-lock-keyword-beg-re |
| 2152 | "\\_<\\(nil\\|self\\|true\\|false\\)\\_>") | 2153 | "\\_<\\(nil\\|true\\|false\\)\\_>") |
| 2153 | 1 font-lock-variable-name-face) | 2154 | 1 font-lock-constant-face) |
| 2154 | ;; Keywords that evaluate to certain values. | 2155 | ;; Keywords that evaluate to certain values. |
| 2155 | ("\\_<__\\(?:LINE\\|ENCODING\\|FILE\\)__\\_>" | 2156 | ("\\_<__\\(?:LINE\\|ENCODING\\|FILE\\)__\\_>" |
| 2156 | (0 font-lock-builtin-face)) | 2157 | (0 font-lock-builtin-face)) |