diff options
Diffstat (limited to 'lisp')
| -rw-r--r-- | lisp/ChangeLog | 10 | ||||
| -rw-r--r-- | lisp/progmodes/ruby-mode.el | 8 |
2 files changed, 14 insertions, 4 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 610a237b050..cc30dc82341 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,13 @@ | |||
| 1 | 2013-01-27 Dmitry Gutov <dgutov@yandex.ru> | ||
| 2 | |||
| 3 | * progmodes/ruby-mode.el (ruby-font-lock-keywords): Remove some | ||
| 4 | checks made superfluous by the \_< operator. | ||
| 5 | |||
| 6 | 2013-01-27 Nobuyoshi Nakada <nobu@ruby-lang.org> | ||
| 7 | |||
| 8 | * progmodes/ruby-mode.el (ruby-font-lock-keywords): Use "\\_<" | ||
| 9 | instead of "\\b". | ||
| 10 | |||
| 1 | 2013-01-27 Michael Albinus <michael.albinus@gmx.de> | 11 | 2013-01-27 Michael Albinus <michael.albinus@gmx.de> |
| 2 | 12 | ||
| 3 | * autorevert.el (auto-revert-handler): Notifications which result | 13 | * autorevert.el (auto-revert-handler): Notifications which result |
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 |