]> git.eshelyaron.com Git - emacs.git/commit
* lisp/font-lock.el (font-lock--syntax-table-affects-ppss): New var
authorStefan Monnier <monnier@iro.umontreal.ca>
Thu, 4 Jun 2020 13:58:22 +0000 (09:58 -0400)
committerStefan Monnier <monnier@iro.umontreal.ca>
Thu, 4 Jun 2020 13:58:22 +0000 (09:58 -0400)
commitcdadb7a97cbed523af9f52705d8b03e91d17313f
tree8b9df10b3c84c489842167f9cfdf3e61974850b2
parent4fff6502368e87b3c031589a1a96267243f868b0
* lisp/font-lock.el (font-lock--syntax-table-affects-ppss): New var

This tries to make `font-lock-syntax-table` work correctly even when
it changes the parsing of strings and comments, as was the case in
`font-latex.el`.

We should probably deprecate the use of `font-lock-syntax-table` since
the present fix is still not 100% and since it comes with performance
problems in large files.

(font-lock-set-defaults): Set it.
(font-lock-fontify-syntactically-region): Don't use `syntax-ppss`
when we think that `font-lock-syntax-table` would interfere.
lisp/font-lock.el