Am 11.07.2011 21:05, schrieb ZyX:
Reply to message «Re: Vim Script grammer»,
sent 22:38:50 11 July 2011, Monday
by Peter Odding:
- Vim script commands determine how their arguments are parsed so there
doesn't seem to be a universal way to parse Vim script code -- it
depends on the commands involved (e.g. normally you can use | to begin a
new command on the same line but this does not work if the line starts
with any of the :map commands)
It applies only to builtins and there is only three behaviors that should be
taken into consideration while splitting stream into sequence of commands:
1. Bar and NL can be taken as a part of a string literal (only for builtins, NL
behavior depends on context), in other cases they terminate the command.
Comments are not allowed.
2. Bar and NL terminate the command. Comments are allowed.
3. Bar does not terminate the command. Comments are not allowed. NL behavior
depends on context.
If you know more, please write this here.
For the :s and :g commands, Bar can be part of the pattern.
--
Andy
--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php