comparison runtime/syntax/testdir/input/vim_ex_menu.vim @ 34590:4cad34137ea0

runtime(vim): Update base-syntax, disallow '.' at start of menu item names (#14232) Commit: https://github.com/vim/vim/commit/ec21bafc135a1e78d40e4fc9118e022bbab958e8 Author: dkearns <dougkearns@gmail.com> Date: Wed Mar 20 04:04:42 2024 +1100 runtime(vim): Update base-syntax, disallow '.' at start of menu item names (https://github.com/vim/vim/issues/14232) Disallow '.' at the start of a menu item name. This is the menu path separator character and should be escaped with a '\' in this case. Partially fixes #14230. "popup" is still incorrectly matched as the Ex command. Signed-off-by: Doug Kearns <dougkearns@gmail.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
author Christian Brabandt <cb@256bit.org>
date Tue, 19 Mar 2024 18:15:05 +0100
parents 408e9818595d
children
comparison
equal deleted inserted replaced
34589:ce88329d5230 34590:4cad34137ea0
69 69
70 " popup menus 70 " popup menus
71 popup &Foo | echo "Foo" 71 popup &Foo | echo "Foo"
72 popup! &Foo | echo "Foo" 72 popup! &Foo | echo "Foo"
73 73
74
75 " Issue #14230
76
77 " a menu item name cannot start with '.'
78
79 export def HistoryJumpMenu()
80 popup.FilterMenu("Jump history", dir_hist,
81 (res, _) => {
82 HistoryJump(res.text)
83 })
84 enddef
85
86 popup\.FilterMenu<Tab>Filter()<CR>
87