Mercurial > emacs
diff lisp/progmodes/hideif.el @ 94036:d669760bc2f0
(hif-factor): Handle unary minus.
author | Stefan Monnier <monnier@iro.umontreal.ca> |
---|---|
date | Sat, 12 Apr 2008 04:38:45 +0000 |
parents | c9b42189e94f |
children | 10db3330138c |
line wrap: on
line diff
--- a/lisp/progmodes/hideif.el Sat Apr 12 03:18:33 2008 +0000 +++ b/lisp/progmodes/hideif.el Sat Apr 12 04:38:45 2008 +0000 @@ -496,6 +496,10 @@ ((numberp hif-token) (prog1 hif-token (hif-nexttoken))) + ;; Unary plus/minus. + ((memq hif-token '(hif-minus hif-plus)) + (list (prog1 hif-token (hif-nexttoken)) 0 (hif-factor))) + (t ; identifier (let ((ident hif-token)) (if (memq ident '(or and))