Do not use syntax-ppss-table in syntax-propertize when nil (Bug#36095)

* lisp/emacs-lisp/syntax.el (syntax-propertize): Use (syntax-table)
instead of syntax-ppss-table when the latter is nil.
This commit is contained in:
Dario Gjorgjevski 2019-06-05 11:07:49 +02:00 committed by Noam Postavsky
parent 0b3982b1a3
commit dec148939a

View file

@ -304,7 +304,7 @@ END) suitable for `syntax-propertize-function'."
#'syntax-ppss-flush-cache 99 t))
(save-excursion
(with-silent-modifications
(with-syntax-table syntax-ppss-table
(with-syntax-table (or syntax-ppss-table (syntax-table))
(make-local-variable 'syntax-propertize--done) ;Just in case!
(let* ((start (max (min syntax-propertize--done (point-max))
(point-min)))