]> git.eshelyaron.com Git - emacs.git/commitdiff
* progmodes/ruby-mode.el (ruby-parse-partial, ruby-font-lock-keywords): Support overl...
authorChong Yidong <cyd@stupidchicken.com>
Wed, 17 Jun 2009 15:16:17 +0000 (15:16 +0000)
committerChong Yidong <cyd@stupidchicken.com>
Wed, 17 Jun 2009 15:16:17 +0000 (15:16 +0000)
lisp/ChangeLog
lisp/progmodes/ruby-mode.el

index c5dd0e621c7ca897139500a762a25f4ca6fdcb24..3519690d562b00dc1488293919c651a039d0aabe 100644 (file)
@@ -1,3 +1,9 @@
+2009-06-17  Akinori MUSHA  <knu@iDaemons.org>  (tiny change)
+
+       * progmodes/ruby-mode.el (ruby-parse-partial)
+       (ruby-font-lock-keywords): Support overloadable negative
+       operators (Bug#3587).
+
 2009-06-17  Tiago Saboga  <tiagosaboga@gmail.com>  (tiny change)
 
        * files.el (save-some-buffers-action-alist): Fix last
index d9718e6252fd518037cf4007fe1c2359047875c7..4807d64f053565c57a8b73597eb6179c138c4bed 100644 (file)
@@ -613,7 +613,7 @@ and `\\' when preceded by `?'."
        ((looking-at ":\\(['\"]\\)")
         (goto-char (match-beginning 1))
         (ruby-forward-string (buffer-substring (match-beginning 1) (match-end 1)) end))
-       ((looking-at ":\\([-,.+*/%&|^~<>]=?\\|===?\\|<=>\\)")
+       ((looking-at ":\\([-,.+*/%&|^~<>]=?\\|===?\\|<=>\\|![~=]?\\)")
         (goto-char (match-end 0)))
        ((looking-at ":\\([a-zA-Z_][a-zA-Z_0-9]*[!?=]?\\)?")
         (goto-char (match-end 0)))
@@ -1362,7 +1362,7 @@ See `font-lock-syntax-table'.")
    '("\\(^\\|[^_]\\)\\b\\([A-Z]+\\(\\w\\|_\\)*\\)"
      2 font-lock-type-face)
    ;; symbols
-   '("\\(^\\|[^:]\\)\\(:\\([-+~]@?\\|[/%&|^`]\\|\\*\\*?\\|<\\(<\\|=>?\\)?\\|>[>=]?\\|===?\\|=~\\|\\[\\]=?\\|\\(\\w\\|_\\)+\\([!?=]\\|\\b_*\\)\\|#{[^}\n\\\\]*\\(\\\\.[^}\n\\\\]*\\)*}\\)\\)"
+   '("\\(^\\|[^:]\\)\\(:\\([-+~]@?\\|[/%&|^`]\\|\\*\\*?\\|<\\(<\\|=>?\\)?\\|>[>=]?\\|===?\\|=~\\|![~=]?\\|\\[\\]=?\\|\\(\\w\\|_\\)+\\([!?=]\\|\\b_*\\)\\|#{[^}\n\\\\]*\\(\\\\.[^}\n\\\\]*\\)*}\\)\\)"
      2 font-lock-reference-face)
    ;; expression expansion
    '("#\\({[^}\n\\\\]*\\(\\\\.[^}\n\\\\]*\\)*}\\|\\(\\$\\|@\\|@@\\)\\(\\w\\|_\\)+\\)"