• R/O
  • SSH

vim: Commit

Mirror of the Vim source from https://github.com/vim/vim


Commit MetaInfo

Revision2715448db31c7f16e3b1cde6cd3ecea0ed7e5875 (tree)
Time2022-06-28 07:15:03
AuthorBram Moolenaar <Bram@vim....>
CommiterBram Moolenaar

Log Message

patch 8.2.5172: "make menu" still uses legacy script

Commit: https://github.com/vim/vim/commit/c19f1a3488c1bb6fe5707dc6338b13cb9f598670
Author: Bram Moolenaar <Bram@vim.org>
Date: Mon Jun 27 23:13:04 2022 +0100

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.

Change Summary

Incremental Difference

diff -r 8eeda3ed1a8d -r 2715448db31c runtime/makemenu.vim
--- a/runtime/makemenu.vim Tue Jun 28 00:00:19 2022 +0200
+++ b/runtime/makemenu.vim Tue Jun 28 00:15:03 2022 +0200
@@ -2,7 +2,7 @@
22
33 # Script to define the syntax menu in synmenu.vim
44 # Maintainer: Bram Moolenaar <Bram@vim.org>
5-# Last Change: 2022 Feb 04
5+# Last Change: 2022 Jun 27
66
77 # This is used by "make menu" in the src directory.
88 edit <sfile>:p:h/synmenu.vim
@@ -39,13 +39,13 @@
3939 else
4040 # When starting a new letter, insert a menu separator.
4141 var c = submenu_name[0]
42- if c != s:cur_menu_char
43- exe 'an 50.' .. s:cur_menu_nr .. '.' .. s:cur_menu_item .. ' &Syntax.' .. menu_name .. ".-" .. c .. '- <nul>'
42+ if c != cur_menu_char
43+ exe 'an 50.' .. cur_menu_nr .. '.' .. cur_menu_item .. ' &Syntax.' .. menu_name .. ".-" .. c .. '- <nul>'
4444 cur_menu_item += 10
4545 cur_menu_char = c
4646 endif
4747 endif
48- append(lnum, 'an 50.' .. s:cur_menu_nr .. '.' .. s:cur_menu_item .. ' &Syntax.' .. menu_name .. "." .. submenu_name .. ' :cal SetSyn("' .. syntax_name .. '")<CR>')
48+ append(lnum, 'an 50.' .. cur_menu_nr .. '.' .. cur_menu_item .. ' &Syntax.' .. menu_name .. "." .. submenu_name .. ' :cal SetSyn("' .. syntax_name .. '")<CR>')
4949 cur_menu_item += 10
5050 lnum += 1
5151 enddef
diff -r 8eeda3ed1a8d -r 2715448db31c src/version.c
--- a/src/version.c Tue Jun 28 00:00:19 2022 +0200
+++ b/src/version.c Tue Jun 28 00:15:03 2022 +0200
@@ -736,6 +736,8 @@
736736 static int included_patches[] =
737737 { /* Add new patch number below this line */
738738 /**/
739+ 5172,
740+/**/
739741 5171,
740742 /**/
741743 5170,
Show on old repository browser