ZyX wrote: > > The docs are wrong, using "if" is allowed. The other two are not. > > Why? It makes parsing impossible. E.g. like indicated by @Yukihiro > Nakadaira, there is absolutely nothing you can do with this error > unless you add hacks for some specific cases (e.g. if `execute` is > followed by a string literal starting with `if`).
The code is full of exceptions. There is a lot of history, some dating back to the days of Ex. The language wasn't designed to make life for parser writers easier. Some parts of the language weren't designed at all, they just happened. Not breaking existing Vim scripts is the main goal, thus making changes in the language to simplify the implementation will cause headeaches for users. -- BODY: I'm not dead! CART DRIVER: 'Ere. He says he's not dead. LARGE MAN: Yes he is. BODY: I'm not! "Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD /// Bram Moolenaar -- b...@moolenaar.net -- http://www.Moolenaar.net \\\ /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\ \\\ an exciting new programming language -- http://www.Zimbu.org /// \\\ help me help AIDS victims -- http://ICCF-Holland.org /// -- -- 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 --- You received this message because you are subscribed to the Google Groups "vim_dev" group. To unsubscribe from this group and stop receiving emails from it, send an email to vim_dev+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.