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:
parent
0b3982b1a3
commit
dec148939a
1 changed files with 1 additions and 1 deletions
|
@ -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)))
|
||||
|
|
Loading…
Add table
Reference in a new issue