Re: [PATCH v2 4/4] diff.c: convert builtin funcname patterns to non-GNU extended regex syntax
- From
Brandon Casey <casey@nrlssc.navy.mil>
- Date
- Sep 19, 2008, 15:59 UTC
- Message-ID
- <RvgrrcxK92TUU52XizpRyxykjZ7Bi6GV1bEGpjFUOlB7EfvuSDNySA@cipher.nrlssc.navy.mil>
- In-Reply-To
- <azRDXO9YgAHlqbMUTpBfy26HVw0xzYFwnT5x-l_nqDw@cipher.nrlssc.navy.mil>
Brandon Casey wrote:
Show 8 quoted lines
> Brandon Casey wrote:
>
>> + { "java", "!^[ ]*(catch|do|for|if|instanceof|"
>> + "new|return|switch|throw|while)\n"
>> + "^[ ]*(([ ]*"
>> + "[A-Za-z_][A-Za-z_0-9]*){2,}"
>
> I don't understand the last two lines above.ok, I figured it out.
I was interpretting the {2,} part in ([ ]*[A-Za-z_][A-Za-z_0-9]*){2,}as requiring two characters, instead of two or more repetitions of the pattern inside the parenthesis.
-brandon