diff options
| author | jgmdev <jgmdev@gmail.com> | 2022-03-29 21:48:34 -0400 |
|---|---|---|
| committer | jgmdev <jgmdev@gmail.com> | 2022-03-29 22:11:14 -0400 |
| commit | b0c005a5acaf0cd419fa84ce2e0f0065056348a7 (patch) | |
| tree | 42689bd188372c8addd3447eec01d5fa58604907 /data/plugins/language_python.lua | |
| parent | 7372d2f82d8edde0ef47039262cbe766398af1f3 (diff) | |
| download | lite-xl-b0c005a5acaf0cd419fa84ce2e0f0065056348a7.tar.gz lite-xl-b0c005a5acaf0cd419fa84ce2e0f0065056348a7.zip | |
syntax: remove pattern re-ordering on optimization
* Introduces a flag that syntax writers can turn off named
space_handling, turning it off means that your syntax will take care
of handling the excessive amount of spaces that can slow down the
tokenizer.
* Adds another pattern at the end of every single table that also
improves tokenizer performance by matching words that weren't match by
any of the synxtax patterns.
* Modifies language_md to turn off the provided space_handling and do its
own since it has rules that require a space at the beginning, also
handles long consecutives amount of dashes used in tables that degrade
performance.
* This changes where discussed in collaboration with @Guldoman and
@takase1121 thanks to all!
Diffstat (limited to 'data/plugins/language_python.lua')
0 files changed, 0 insertions, 0 deletions
