aboutsummaryrefslogtreecommitdiff
path: root/runtime/lua/vim/provider/python.lua
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2026-09-15 08:44:07 +0800
committerzeertzjq <zeertzjq@outlook.com>2026-09-15 08:44:10 +0800
commit1332dcfcd079276f90671c5bc25f25fcf6980705 (patch)
tree916e4531d24145593c67fc7be6c9dfc9b7236d3c /runtime/lua/vim/provider/python.lua
parentaf2837c7bc44d6e83067043ecd8c8b8e0503c2c0 (diff)
downloadrneovim-1332dcfcd079276f90671c5bc25f25fcf6980705.tar.gz
rneovim-1332dcfcd079276f90671c5bc25f25fcf6980705.tar.bz2
rneovim-1332dcfcd079276f90671c5bc25f25fcf6980705.zip
vim-patch:5acb552: runtime(nginx): syntax highlighting is slow on large configs
Problem: Highlighting nginx.conf is slow; the ngxSSLCipherInsecure group alone accounts for ~39% of the total syntax parse time because it is spread over ~34 separate non-contained :syn match rules that are each scanned at every position of every line. Solution: Merge the ~28 rules sharing the identical '[^!]\zs' prefix into a single alternation match, keeping only the six rules that need a different preceding-character constraint separate. Highlighting is unchanged; total syntax parse time drops by ~42% on a large config. Update the Date header to Vims preferred format. closes: vim/vim#21195 https://github.com/vim/vim/commit/5acb55229090adb834e186a452b57ee66a26303f Co-authored-by: Julien Voisin <julien.voisin@dustri.org>
Diffstat (limited to 'runtime/lua/vim/provider/python.lua')
0 files changed, 0 insertions, 0 deletions