Thanks to all for the bug report and followup investigation. There is a clear bug in skip_syntaxes in Emacs 25, which the attached patch should fix. Eli, OK to install this into emacs-25? If not, I can install it into master.