(sweeprolog--forward-term pre))
(if-let ((ppre (sweeprolog-op-suffix-precedence
(buffer-substring-no-properties obeg oend))))
- (if (> opre pre)
+ (if (> ppre pre)
(signal 'scan-error
(list (format "Cannot scan beyond suffix operator of higher precedence %s." opre)
obeg
(sweeprolog--forward-term pre))
(if-let ((ppre (sweeprolog-op-prefix-precedence
(buffer-substring-no-properties obeg oend))))
- (if (> opre pre)
+ (if (> ppre pre)
(signal 'scan-error
(list (format "Cannot scan backwards beyond prefix operator of higher precedence %s." opre)
obeg
(sweeprolog--backward-term pre))
(if-let ((ppre (sweeprolog-op-prefix-precedence
(buffer-substring-no-properties obeg oend))))
- (if (> opre pre)
+ (if (> ppre pre)
(signal 'scan-error
(list (format "Cannot scan backwards beyond prefix operator of higher precedence %s." opre)
obeg
(sweeprolog--backward-term pre))
(if-let ((ppre (sweeprolog-op-prefix-precedence
(buffer-substring-no-properties obeg oend))))
- (if (> opre pre)
+ (if (> ppre pre)
(signal 'scan-error
(list (format "Cannot scan backwards beyond prefix operator of higher precedence %s." opre)
obeg