]> git.ipfire.org Git - thirdparty/vim.git/commit
runtime(vim): Update base-syntax, disallow '.' at start of menu item names (#14232)
authordkearns <dougkearns@gmail.com>
Tue, 19 Mar 2024 17:04:42 +0000 (04:04 +1100)
committerGitHub <noreply@github.com>
Tue, 19 Mar 2024 17:04:42 +0000 (18:04 +0100)
commitec21bafc135a1e78d40e4fc9118e022bbab958e8
tree85cbf9638fe63e39f2b11b78b2e39e4fc7e0c0ac
parent702f7923f6e57051b314e26fde6734dfb1292da7
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>
runtime/syntax/generator/vim.vim.base
runtime/syntax/testdir/dumps/vim_ex_menu_01.dump
runtime/syntax/testdir/dumps/vim_ex_menu_02.dump
runtime/syntax/testdir/dumps/vim_ex_menu_03.dump
runtime/syntax/testdir/dumps/vim_ex_menu_04.dump [new file with mode: 0644]
runtime/syntax/testdir/dumps/vim_ex_menu_99.dump
runtime/syntax/testdir/input/vim_ex_menu.vim
runtime/syntax/vim.vim