mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2024-11-22 07:09:54 +00:00
Fix infloop in Modula-2 mode
* lisp/progmodes/modula2.el (m2-smie-refine-colon): Stop looping when point does not move with forward-sexp (Bug#48011).
This commit is contained in:
parent
86e4d770a8
commit
0b48e2d258
@ -201,7 +201,10 @@
|
||||
((zerop (length tok))
|
||||
(let ((forward-sexp-function nil))
|
||||
(condition-case nil
|
||||
(forward-sexp -1)
|
||||
(let ((p (point)))
|
||||
(forward-sexp -1)
|
||||
(when (= p (point))
|
||||
(setq res ":")))
|
||||
(scan-error (setq res ":")))))
|
||||
((member tok '("|" "OF" "..")) (setq res ":-case"))
|
||||
((member tok '(":" "END" ";" "BEGIN" "VAR" "RECORD" "PROCEDURE"))
|
||||
|
Loading…
Reference in New Issue
Block a user