# HG changeset patch # User Stefan Monnier # Date 1205291713 0 # Node ID ef656c281e1e67b4656840faf3d97c163982ae0a # Parent 98f0d29f01c5ff09d403a45083904982213dc856 (sgml-font-lock-syntactic-keywords): Mark " outside of tags as punctuation. diff -r 98f0d29f01c5 -r ef656c281e1e lisp/ChangeLog --- a/lisp/ChangeLog Tue Mar 11 22:02:46 2008 +0000 +++ b/lisp/ChangeLog Wed Mar 12 03:15:13 2008 +0000 @@ -1,3 +1,8 @@ +2008-03-12 Stefan Monnier + + * textmodes/sgml-mode.el (sgml-font-lock-syntactic-keywords): + Mark " outside of tags as punctuation. + 2008-03-11 Stefan Monnier * menu-bar.el (minibuffer-local-map): Use the same command for the diff -r 98f0d29f01c5 -r ef656c281e1e lisp/textmodes/sgml-mode.el --- a/lisp/textmodes/sgml-mode.el Tue Mar 11 22:02:46 2008 +0000 +++ b/lisp/textmodes/sgml-mode.el Wed Mar 12 03:15:13 2008 +0000 @@ -292,7 +292,9 @@ ;; comments recognized when `sgml-specials' includes ?-. ;; FIXME: beware of blabla !! '(("\\(<\\)!--" (1 "< b")) - ("--[ \t\n]*\\(>\\)" (1 "> b"))) + ("--[ \t\n]*\\(>\\)" (1 "> b")) + ;; Double quotes outside of tags should not introduce strings. + ("\\\"" (0 (if (zerop (car (syntax-ppss))) ".")))) "Syntactic keywords for `sgml-mode'.") ;; internal