mirror of
git://git.sv.gnu.org/emacs.git
synced 2025-12-15 10:30:25 -08:00
(sgml-font-lock-syntactic-keywords):
Use syntax-ppss on a position *before* the char we want to change.
This commit is contained in:
parent
26d41f17e5
commit
41b9049579
2 changed files with 11 additions and 2 deletions
|
|
@ -292,7 +292,11 @@ Any terminating `>' or `/' is not matched.")
|
|||
'(("\\(<\\)!--" (1 "< b"))
|
||||
("--[ \t\n]*\\(>\\)" (1 "> b"))
|
||||
;; Double quotes outside of tags should not introduce strings.
|
||||
("\\\"" (0 (if (zerop (car (syntax-ppss))) "."))))
|
||||
;; Be careful to call `syntax-ppss' on a position before the one we're
|
||||
;; going to change, so as not to need to flush the data we just computed.
|
||||
("\"" (0 (if (prog1 (zerop (car (syntax-ppss (match-beginning 0))))
|
||||
(goto-char (match-end 0)))
|
||||
"."))))
|
||||
"Syntactic keywords for `sgml-mode'.")
|
||||
|
||||
;; internal
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue