Vincent Lefevre writes: > I've tried the combination of > > ca14dd1d4628094dd33d5d94694dcf5f29e843b8 > 7dab3ee7ab54b3c2e7bc24170376054786c01d6f > > and this patch against Debian's current source package. > > Emacs no longer hangs, but I get incorrect highlighting, > for instance on the following XML file. > > > > "a' > > > > Highlighting starts to be wrong at the single-quote character. > I've attached a screenshot obtained with the -Q option. > > Did I miss anything? Ah, I didn't get the mixed quote handling right. Here's the fix for master: