]> code.delx.au - gnu-emacs/blobdiff - lisp/font-lock.el
* lisp/emacs-lisp/syntax.el (syntax-ppss-table): New var
[gnu-emacs] / lisp / font-lock.el
index 3c1f01d58860b0b847e5d78d5a014bc69085bb3e..c79835dda4965f57f5ee40c4b8eadd13e53412a1 100644 (file)
@@ -1564,6 +1564,7 @@ START should be at the beginning of a line."
   "Put proper face on each string and comment between START and END.
 START should be at the beginning of a line."
   (syntax-propertize end)  ; Apply any needed syntax-table properties.
+  (with-syntax-table (or syntax-ppss-table (syntax-table))
   (let ((comment-end-regexp
         (or font-lock-comment-end-skip
             (regexp-quote
@@ -1598,7 +1599,7 @@ START should be at the beginning of a line."
                                     font-lock-comment-delimiter-face))))
          (< (point) end))
       (setq state (parse-partial-sexp (point) end nil nil state
-                                     'syntax-table)))))
+                                     'syntax-table))))))
 
 ;;; End of Syntactic fontification functions.
 \f