0
0
mirror of https://github.com/vim/vim.git synced 2025-09-23 03:43:49 -04:00

runtime(vim): Update base-syntax, disallow '.' at start of menu item names (#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>
This commit is contained in:
dkearns
2024-03-20 04:04:42 +11:00
committed by GitHub
parent 702f7923f6
commit ec21bafc13
8 changed files with 59 additions and 25 deletions

View File

@@ -71,3 +71,17 @@ an <silent> 10.330 &File.&Close<Tab>:close :if winheight(2) < 0 && tabpagewinnr(
popup &Foo | echo "Foo"
popup! &Foo | echo "Foo"
" Issue #14230
" a menu item name cannot start with '.'
export def HistoryJumpMenu()
popup.FilterMenu("Jump history", dir_hist,
(res, _) => {
HistoryJump(res.text)
})
enddef
popup\.FilterMenu<Tab>Filter()<CR>