mirror of
https://github.com/vim/vim.git
synced 2025-07-26 11:04:33 -04:00
patch 8.1.1672: "make cmdidxs" doesn't work
Problem: "make cmdidxs" doesn't work. Solution: Update macro names. (Naruhiko Nishino, closes #4660)
This commit is contained in:
parent
b7b9efbccf
commit
d94ac0caca
@ -14,8 +14,8 @@ let lines = readfile('ex_cmds.h')
|
|||||||
let idx = 0
|
let idx = 0
|
||||||
while idx < len(lines)
|
while idx < len(lines)
|
||||||
let line = lines[idx]
|
let line = lines[idx]
|
||||||
if line =~ '^EX(CMD_'
|
if line =~ '^EXCMD(CMD_'
|
||||||
let m = matchlist(line, '^EX(CMD_\S*,\s*"\([a-z][^"]*\)"')
|
let m = matchlist(line, '^EXCMD(CMD_\S*,\s*"\([a-z][^"]*\)"')
|
||||||
if len(m) >= 2
|
if len(m) >= 2
|
||||||
let cmds += [ m[1] ]
|
let cmds += [ m[1] ]
|
||||||
else
|
else
|
||||||
@ -27,9 +27,9 @@ while idx < len(lines)
|
|||||||
let idx += 1
|
let idx += 1
|
||||||
let addr_type = lines[idx]
|
let addr_type = lines[idx]
|
||||||
|
|
||||||
if flags =~ '\<RANGE\>'
|
if flags =~ '\<EX_RANGE\>'
|
||||||
if addr_type =~ 'ADDR_NONE'
|
if addr_type =~ 'ADDR_NONE'
|
||||||
echoerr 'ex_cmds.h:' .. (idx - 1) .. ': Using RANGE with ADDR_NONE: ' .. line
|
echoerr 'ex_cmds.h:' .. (idx - 1) .. ': Using EX_RANGE with ADDR_NONE: ' .. line
|
||||||
endif
|
endif
|
||||||
else
|
else
|
||||||
if addr_type !~ 'ADDR_NONE'
|
if addr_type !~ 'ADDR_NONE'
|
||||||
@ -37,8 +37,8 @@ while idx < len(lines)
|
|||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
|
|
||||||
if flags =~ '\<DFLALL\>' && (addr_type =~ 'ADDR_OTHER' || addr_type =~ 'ADDR_NONE')
|
if flags =~ '\<EX_DFLALL\>' && (addr_type =~ 'ADDR_OTHER' || addr_type =~ 'ADDR_NONE')
|
||||||
echoerr 'ex_cmds.h:' .. (idx - 1) .. ': Missing misplaced DFLALL: ' .. line
|
echoerr 'ex_cmds.h:' .. (idx - 1) .. ': Missing misplaced EX_DFLALL: ' .. line
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
let idx += 1
|
let idx += 1
|
||||||
|
@ -777,6 +777,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 */
|
||||||
|
/**/
|
||||||
|
1672,
|
||||||
/**/
|
/**/
|
||||||
1671,
|
1671,
|
||||||
/**/
|
/**/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user