aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/progmodes/hideif.el
diff options
context:
space:
mode:
Diffstat (limited to 'lisp/progmodes/hideif.el')
-rw-r--r--lisp/progmodes/hideif.el4
1 files changed, 4 insertions, 0 deletions
diff --git a/lisp/progmodes/hideif.el b/lisp/progmodes/hideif.el
index 5c9bf45e39..9f83d89532 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))