From: Adrian Johnson Date: Sun, 16 Sep 2012 07:19:14 GMT Subject: Re: [PATCH] Add userdiff patterns for Ada Message-ID: <50557D72.60205@redneon.com> In-Reply-To: <7vboh6zek0.fsf@alter.siamese.dyndns.org> On 16/09/12 15:37, Junio C Hamano wrote: > Adrian Johnson writes: > >> Add Ada xfuncname and wordRegex patterns to the list of builtin >> patterns. >> >> Signed-off-by: Adrian Johnson >> --- > > Interesting. I do not read Ada, but in this "expect" file,... > >> diff --git a/t/t4034/ada/expect b/t/t4034/ada/expect >> new file mode 100644 >> index 0000000..be2376e >> --- /dev/null >> +++ b/t/t4034/ada/expect >> @@ -0,0 +1,27 @@ >> +diff --git a/pre b/post >> +index d96fdd1..df21bb0 100644 >> +--- a/pre >> ++++ b/post >> +@@ -1,13 +1,13 @@ >> +Ada.Text_IO.Put_Line("Hello World!?"); >> +1 1e-10 16#FE12#E2 3.141_592 'xy' >> +ax+b ay x-b >> +ay >> +x*b ay x/b >> +ay >> +x**b >> +ay >> +x(by) >> +ax:=b >> +ay >> +x=b ay x/= b >> +ay >> +x<b ay x<=b ay x>b ay x>=b >> +ay >> +x,b >> +ay >> +x=>b >> +ay >> +x..b >> +ay >> +x<>by > > I do not seem to find anything interesting after @@, which means > that xfuncname is not tested at all even though the log message > claims the patch adds some. I probably misunderstood how the tests work. I thought t4034 tested wordRegex while t4018 is for xfuncname. I based the Ada tests on the Pascal tests but changed the operators to Ada operators. I'm not really sure what else the test needs. > > Puzzled... > -- > To unsubscribe from this list: send the line "unsubscribe git" in > the body of a message to majordomo@vger.kernel.org > More majordomo info at http://vger.kernel.org/majordomo-info.html >