summaryrefslogtreecommitdiff
path: root/lisp/font-lock.el
diff options
context:
space:
mode:
authorStefan Monnier <monnier@iro.umontreal.ca>2016-01-16 15:06:04 -0500
committerStefan Monnier <monnier@iro.umontreal.ca>2016-01-16 15:06:04 -0500
commit8dafacd0419ea890af461c9d42d4642155681eec (patch)
tree8acc61f598a8f1dc1f235e4040e6b56aef914fb2 /lisp/font-lock.el
parent56e1097584c13f2b6db85592769db1c6c36e9419 (diff)
downloademacs-8dafacd0419ea890af461c9d42d4642155681eec.tar.gz
* lisp/emacs-lisp/syntax.el (syntax-ppss-table): New var
(syntax-ppss): * lisp/font-lock.el (font-lock-fontify-syntactically-region): Use it.
Diffstat (limited to 'lisp/font-lock.el')
-rw-r--r--lisp/font-lock.el3
1 files changed, 2 insertions, 1 deletions
diff --git a/lisp/font-lock.el b/lisp/font-lock.el
index 3c1f01d5886..c79835dda49 100644
--- a/lisp/font-lock.el
+++ b/lisp/font-lock.el
@@ -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.