diff options
author | Stefan Monnier <monnier@iro.umontreal.ca> | 2008-04-12 04:38:45 +0000 |
---|---|---|
committer | Stefan Monnier <monnier@iro.umontreal.ca> | 2008-04-12 04:38:45 +0000 |
commit | fb970f91df77e01d96f055d5d5f000080d7f8b88 (patch) | |
tree | 2ce84fefd467c2a4b6ddc060fa334bb490f55744 /lisp/progmodes/hideif.el | |
parent | c3de239774f0b1f17219a456be0dd7f52f9be9ec (diff) | |
download | emacs-fb970f91df77e01d96f055d5d5f000080d7f8b88.tar.gz |
(hif-factor): Handle unary minus.
Diffstat (limited to 'lisp/progmodes/hideif.el')
-rw-r--r-- | lisp/progmodes/hideif.el | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lisp/progmodes/hideif.el b/lisp/progmodes/hideif.el index 5c9bf45e392..9f83d89532e 100644 --- a/lisp/progmodes/hideif.el +++ b/lisp/progmodes/hideif.el @@ -496,6 +496,10 @@ that form should be displayed.") ((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)) |