aboutsummaryrefslogtreecommitdiff
path: root/runtime/syntax/python.vim
diff options
context:
space:
mode:
authorLewis Russell <lewis6991@gmail.com>2026-09-09 18:43:20 +0100
committerLewis Russell <me@lewisr.dev>2026-09-10 12:34:13 +0100
commitd663d8f4b3116a9cad4ade936218ccb4ed723c30 (patch)
treeeba9a3725782e69280492c1fce978a67f7ca43be /runtime/syntax/python.vim
parent37c72fb6191a79e4c9bce1f6e553cbd2d09a426d (diff)
downloadrneovim-d663d8f4b3116a9cad4ade936218ccb4ed723c30.tar.gz
rneovim-d663d8f4b3116a9cad4ade936218ccb4ed723c30.tar.bz2
rneovim-d663d8f4b3116a9cad4ade936218ccb4ed723c30.zip
perf(help): generate helptags with LPeg
Problem: Generating helptags builds and queries a full vimdoc syntax tree. This is much slower than the previous scanner and also happens before discovering that the tags file cannot be written. Solution: Extract tags with an LPeg grammar, reading each file once and skipping example blocks and ordinary text. Open the output first so unwritable directories can return immediately. This restores legacy handling of tags inside inline code spans. On an arm64 Mac, the 5.36 MB runtime corpus takes 24 ms instead of 604 ms, with identical generated tags. AI-assisted
Diffstat (limited to 'runtime/syntax/python.vim')
0 files changed, 0 insertions, 0 deletions