PR #4147 (Leo's improved colorizer) is now part of the "devel" branch. The highlights:
- Fixed an ancient O(N) performance bug in the colorizer.
- Fixed bugs in @language jupytext, laying the foundation for similar languages, including @language vue. See #726.
- A new info issue #4158: Theory of Operation for the colorizer.
I skipped the official review. Testing will be our review!
Edward
P. S. The PR notes two issues relating to documentation. I'll be working on them for the next week or so.
EKR
I skipped the official review. Testing will be our review!
This PR should be completely safe even if glitches remain.
Running Leo 6.8.3-devel, devel branch, build 2025714b3a
Python 3.13.0, PyQt version 6.7.3
Windows 10 AMD64 (build 10.0.19045) SP0
Uncaught exception in Leo...
Traceback (most recent call last):
File "N:\git\leo-editor\leo\core\leoColorizer.py", line 2951, in highlightBlock
self.colorizer._recolor(s) # Highlight just one line.
^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'PygmentsColorizer' object has no attribute '_recolor'. Did you mean: 'recolor'?
AttributeError: 'PygmentsColorizer' object has no attribute '_recolor'.
Thanks for the fix.The jedit colorizer is much better. I can't recall why I was even using Pygments colorizer :/