mirror of
https://github.com/vim/vim.git
synced 2025-09-23 03:43:49 -04:00
patch 8.2.5172: "make menu" still uses legacy script
Problem: "make menu" still uses legacy script. Solution: make menu generation script use Vim9 script, fix errors.
This commit is contained in:
@@ -2,7 +2,7 @@ vim9script
|
|||||||
|
|
||||||
# Script to define the syntax menu in synmenu.vim
|
# Script to define the syntax menu in synmenu.vim
|
||||||
# Maintainer: Bram Moolenaar <Bram@vim.org>
|
# Maintainer: Bram Moolenaar <Bram@vim.org>
|
||||||
# Last Change: 2022 Feb 04
|
# Last Change: 2022 Jun 27
|
||||||
|
|
||||||
# This is used by "make menu" in the src directory.
|
# This is used by "make menu" in the src directory.
|
||||||
edit <sfile>:p:h/synmenu.vim
|
edit <sfile>:p:h/synmenu.vim
|
||||||
@@ -39,13 +39,13 @@ def Syn(arg: string)
|
|||||||
else
|
else
|
||||||
# When starting a new letter, insert a menu separator.
|
# When starting a new letter, insert a menu separator.
|
||||||
var c = submenu_name[0]
|
var c = submenu_name[0]
|
||||||
if c != s:cur_menu_char
|
if c != cur_menu_char
|
||||||
exe 'an 50.' .. s:cur_menu_nr .. '.' .. s:cur_menu_item .. ' &Syntax.' .. menu_name .. ".-" .. c .. '- <nul>'
|
exe 'an 50.' .. cur_menu_nr .. '.' .. cur_menu_item .. ' &Syntax.' .. menu_name .. ".-" .. c .. '- <nul>'
|
||||||
cur_menu_item += 10
|
cur_menu_item += 10
|
||||||
cur_menu_char = c
|
cur_menu_char = c
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
append(lnum, 'an 50.' .. s:cur_menu_nr .. '.' .. s:cur_menu_item .. ' &Syntax.' .. menu_name .. "." .. submenu_name .. ' :cal SetSyn("' .. syntax_name .. '")<CR>')
|
append(lnum, 'an 50.' .. cur_menu_nr .. '.' .. cur_menu_item .. ' &Syntax.' .. menu_name .. "." .. submenu_name .. ' :cal SetSyn("' .. syntax_name .. '")<CR>')
|
||||||
cur_menu_item += 10
|
cur_menu_item += 10
|
||||||
lnum += 1
|
lnum += 1
|
||||||
enddef
|
enddef
|
||||||
|
@@ -735,6 +735,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
5172,
|
||||||
/**/
|
/**/
|
||||||
5171,
|
5171,
|
||||||
/**/
|
/**/
|
||||||
|
Reference in New Issue
Block a user