summaryrefslogtreecommitdiffstatshomepage
path: root/runtime/syntax/python.vim
diff options
context:
space:
mode:
authorbfredl <bjorn.linse@gmail.com>2025-08-29 12:22:25 +0200
committerbfredl <bjorn.linse@gmail.com>2025-09-09 12:54:04 +0200
commitf9d2115a359c7846056bb2eb31f9eae818c6d510 (patch)
tree3f64199641f291e6ee9d84f6018dbca9207754bd /runtime/syntax/python.vim
parent1cb1cfead017df79aa590d1d297b116a85cb31c0 (diff)
perf(highlight): allow decoration providers to skip ranges without data
Continuing the work of #31400 That PR allowed the provider to be invoked multiple times per line. We want only to do that when there actually is more data later on the line. Additionally, we want to skip over lines which contain no new highlight items. The TS query cursor already tells us what the next position with more data is, so there is no need to reinvoke the range callback before that. NB: this removes the double buffering introduced in #32619 which is funtamentally incompatible with this (nvim core is supposed to keep track of long ranges by itself, without requiring a callback reinvoke blitz). Need to adjust the priorities some other way to fix the same issue.
Diffstat (limited to 'runtime/syntax/python.vim')
0 files changed, 0 insertions, 0 deletions