aboutsummaryrefslogtreecommitdiff
path: root/test/functional/vimscript/executable_spec.lua
diff options
context:
space:
mode:
authorTristan Knight <admin@snappeh.com>2026-01-12 18:58:01 +0000
committerGitHub <noreply@github.com>2026-01-12 10:58:01 -0800
commitd2ca90d87e3246b5b827ed08f8c0dfc8ad6ae4c8 (patch)
treed8cee2178ee7546406e4bd846791851f61f5ce9a /test/functional/vimscript/executable_spec.lua
parent025c0c34ce597484db01850cc1576b488bc84986 (diff)
downloadrneovim-d2ca90d87e3246b5b827ed08f8c0dfc8ad6ae4c8.tar.gz
rneovim-d2ca90d87e3246b5b827ed08f8c0dfc8ad6ae4c8.tar.bz2
rneovim-d2ca90d87e3246b5b827ed08f8c0dfc8ad6ae4c8.zip
fix(glob): handle numeric literals in pattern matching (#37257)
Problem: vim.glob.to_lpeg() errors when patterns contain numeric literals (like the '1' in '.ps*1') because LPeg interprets numeric strings as indexed grammar rule references. For example: vim.glob.to_lpeg('.ps*1') E5108: Lua: rule '1' undefined in given grammar Solution: Prefix all rule names with '_' in the end_seg() function to prevent literal numbers from being interpreted as LPeg indexed rules. This ensures pattern components like '1', '2', etc. are treated as regular rule names rather than special references.
Diffstat (limited to 'test/functional/vimscript/executable_spec.lua')
0 files changed, 0 insertions, 0 deletions