Subject: bug#7736: 24.0.50; perl-mode infinite loop

From: Chong Yidong <[email-masked]>
Date: Sat, 22 Jan 2011 20:18:34 -0500

[email-masked] writes:

> Man, you gotta see this. On this attached file,
>
> save in /tmp, and run emacs -Q -nw /tmp/r.pl
>
> Now move the cursor down and attempt to change shttp to s[http .
> As you insert the [ an infinite loop begins.

This bug was apparently introduced by syntax-propertize on the trunk.
Stefan, could you take a look?

2010-09-10  Stefan Monnier  <[email-masked]>

   * progmodes/perl-mode.el (perl-syntax-propertize-function): New fun to
   replace perl-font-lock-syntactic-keywords.
   (perl-syntax-propertize-special-constructs): New fun to replace
   perl-font-lock-special-syntactic-constructs.
   (perl-font-lock-syntactic-face-function): New fun.
   (perl-mode): Use it.