Re: [PATCH v2 4/4] diff.c: convert builtin funcname patterns to non-GNU extended regex syntax

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Brandon Casey wrote:
> 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
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]

  Powered by Linux