From ede8c7f0135bb0f35597a298c0fd0218c214c8d1 Mon Sep 17 00:00:00 2001 From: Stefan Monnier Date: Wed, 12 Mar 2008 03:15:13 +0000 Subject: [PATCH] (sgml-font-lock-syntactic-keywords): Mark " outside of tags as punctuation. --- lisp/ChangeLog | 5 +++++ lisp/textmodes/sgml-mode.el | 4 +++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/lisp/ChangeLog b/lisp/ChangeLog index fbf76180037..7236ac84b67 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -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 --git a/lisp/textmodes/sgml-mode.el b/lisp/textmodes/sgml-mode.el index b3d238bccfc..dc4628e9d58 100644 --- a/lisp/textmodes/sgml-mode.el +++ b/lisp/textmodes/sgml-mode.el @@ -292,7 +292,9 @@ Any terminating `>' or `/' is not matched.") ;; 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 -- 2.11.4.GIT