mirror of
https://github.com/neovim/neovim.git
synced 2025-10-09 11:26:37 +00:00
vim-patch:8.1.1667: flags for Ex commands may clash with other symbols
Problem: Flags for Ex commands may clash with other symbols. Solution: Prepend with EX_.8071cb2c64
N/A patches for version.c: vim-patch:8.1.1672: "make cmdidxs" doesn't work Problem: "make cmdidxs" doesn't work. Solution: Update macro names. (Naruhiko Nishino, closes vim/vim#4660)d94ac0caca
Error message for src/nvim/ex_cmds.lua which omits the "EX_" prefix for the flags.
This commit is contained in:
@@ -36,34 +36,34 @@
|
||||
// 4. Add documentation in ../doc/xxx.txt. Add a tag for both the short and
|
||||
// long name of the command.
|
||||
|
||||
#define RANGE 0x001 // allow a linespecs
|
||||
#define BANG 0x002 // allow a ! after the command name
|
||||
#define EXTRA 0x004 // allow extra args after command name
|
||||
#define XFILE 0x008 // expand wildcards in extra part
|
||||
#define NOSPC 0x010 // no spaces allowed in the extra part
|
||||
#define DFLALL 0x020 // default file range is 1,$
|
||||
#define WHOLEFOLD 0x040 // extend range to include whole fold also
|
||||
// when less than two numbers given
|
||||
#define NEEDARG 0x080 // argument required
|
||||
#define TRLBAR 0x100 // check for trailing vertical bar
|
||||
#define REGSTR 0x200 // allow "x for register designation
|
||||
#define COUNT 0x400 // allow count in argument, after command
|
||||
#define NOTRLCOM 0x800 // no trailing comment allowed
|
||||
#define ZEROR 0x1000 // zero line number allowed
|
||||
#define USECTRLV 0x2000 // do not remove CTRL-V from argument
|
||||
#define EDITCMD 0x4000 // allow "+command" argument
|
||||
#define BUFNAME 0x8000 // accepts buffer name
|
||||
#define BUFUNL 0x10000L // accepts unlisted buffer too
|
||||
#define ARGOPT 0x20000L // allow "++opt=val" argument
|
||||
#define SBOXOK 0x40000L // allowed in the sandbox
|
||||
#define CMDWIN 0x80000L // allowed in cmdline window; when missing
|
||||
// disallows editing another buffer when
|
||||
// curbuf_lock is set
|
||||
#define MODIFY 0x100000L // forbidden in non-'modifiable' buffer
|
||||
#define EXFLAGS 0x200000L // allow flags after count in argument
|
||||
#define FILES (XFILE | EXTRA) // multiple extra files allowed
|
||||
#define WORD1 (EXTRA | NOSPC) // one extra word allowed
|
||||
#define FILE1 (FILES | NOSPC) // 1 file allowed, defaults to current file
|
||||
#define EX_RANGE 0x001 // allow a linespecs
|
||||
#define EX_BANG 0x002 // allow a ! after the command name
|
||||
#define EX_EXTRA 0x004 // allow extra args after command name
|
||||
#define EX_XFILE 0x008 // expand wildcards in extra part
|
||||
#define EX_NOSPC 0x010 // no spaces allowed in the extra part
|
||||
#define EX_DFLALL 0x020 // default file range is 1,$
|
||||
#define EX_WHOLEFOLD 0x040 // extend range to include whole fold also
|
||||
// when less than two numbers given
|
||||
#define EX_NEEDARG 0x080 // argument required
|
||||
#define EX_TRLBAR 0x100 // check for trailing vertical bar
|
||||
#define EX_REGSTR 0x200 // allow "x for register designation
|
||||
#define EX_COUNT 0x400 // allow count in argument, after command
|
||||
#define EX_NOTRLCOM 0x800 // no trailing comment allowed
|
||||
#define EX_ZEROR 0x1000 // zero line number allowed
|
||||
#define EX_CTRLV 0x2000 // do not remove CTRL-V from argument
|
||||
#define EX_CMDARG 0x4000 // allow "+command" argument
|
||||
#define EX_BUFNAME 0x8000 // accepts buffer name
|
||||
#define EX_BUFUNL 0x10000 // accepts unlisted buffer too
|
||||
#define EX_ARGOPT 0x20000 // allow "++opt=val" argument
|
||||
#define EX_SBOXOK 0x40000 // allowed in the sandbox
|
||||
#define EX_CMDWIN 0x80000 // allowed in cmdline window; when missing
|
||||
// disallows editing another buffer when
|
||||
// curbuf_lock is set
|
||||
#define EX_MODIFY 0x100000 // forbidden in non-'modifiable' buffer
|
||||
#define EX_FLAGS 0x200000 // allow flags after count in argument
|
||||
#define EX_FILES (EX_XFILE | EX_EXTRA) // multiple extra files allowed
|
||||
#define EX_FILE1 (EX_FILES | EX_NOSPC) // 1 file, defaults to current file
|
||||
#define EX_WORD1 (EX_EXTRA | EX_NOSPC) // one extra word allowed
|
||||
|
||||
// values for cmd_addr_type
|
||||
typedef enum {
|
||||
|
Reference in New Issue
Block a user