On 2020-02-29, lkintact wrote: > Executing :lhelpgrep sub-expression and :lhelpgrep sub-match shows that both > terms are used in the docs. Since they seem to mean the same maybe it's better > to only leave one to remove the possible confusion.
They don't mean the same thing. A sub-expression is part of a regular expression, often delimited by \( and \). A sub-match is the string matched by the sub-expression. That said, there are a few places where "match" is refers to a regular expression that finds a match, such as addmatch() and ":syntax match". There also appear to be a few instances of "sub-match" in the documentation where "sub-pattern" would be more correct. I don't think those usages cause any confusion, though. Regards, Gary -- -- 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 [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/vim_dev/20200301011457.GA27880%40phoenix.
