On Friday, July 19, 2013 8:59:38 AM UTC-5, Bram Moolenaar wrote:
>
>
>
> Does the pattern actually match in the wrong place?
>
>
TortoiseSVN generates commit comments like this whenever you merge:
Merged revision(s) {range} from {branch path}:
change 1 description
........
change 2 description
........
etc.
Actually, I had thought those '.' characters where '-' characters. I guess I
was wrong; so I haven't seen it in real life. But I can easily imagine a person
typing a similar commit message using '-' instead. Or some SVN client could do
it automatically.
The pattern used right now would incorrectly match on the -------- separators.
I kind of like the pattern I proposed, to only match lines starting with
exactly two '-' and ending with exactly two more '-' characters with at least
one character in between.
^---\@!.*-\@!.--$
Possibly this could be optimized some.
--
--
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].
For more options, visit https://groups.google.com/groups/opt_out.