Fwd: fixed flaws in vba.ssh
Masayuki Hatta <[email protected]> Thu, 15 Nov 2012 01:20:25 +0900
| Newsgroups | gmane.comp.printing.a2ps.bugs |
|---|---|
| Message-ID | <CAECZVPBTLHbnL-koBuq4=jgQM17V8GrCviHrdtF8LJKp0XSXSw@mail.gmail.com> |
--f46d044784e97ca32004ce76e9c0 Content-Type: text/plain; charset=ISO-8859-1 FYI ---------- Forwarded message ---------- From: Masayuki Hatta <[email protected]> Date: 2012/11/15 Subject: Re: fixed flaws in vba.ssh To: Stefan Seidler <[email protected]> Hi Stefan, Thanks for the fix. I'm now preparing the next maintenance release of a2ps, and your fix will definitely be included. Best regards, MH 2012/11/14 Stefan Seidler <[email protected]> > Hi, > > I found two flaws in the Stylesheet for Visual Basic for Applications > (vba.ssh) for a2ps. > - ElseIf if misspelled so its not highlighted in the printout > - missing comma in the keywords list so "Integer" is always printed as "Is" > > Below I have included the diff -u for patch. This includes the change > suggested in http://lists.gnu.org/archive/**html/bug-a2ps/2009-07/** > msg00000.html<http://lists.gnu.org/archive/html/bug-a2ps/2009-07/msg00000.html>as well. > > How can this be included into the next release? > > Best Regards, > Stefan > > > --- vba.ssh 2012-11-14 13:46:30.892129632 +0100 > +++ vba.ssh_new 2012-11-14 13:46:14.891129423 +0100 > @@ -24,7 +24,7 @@ > > style "Visual Basic for Applications" is > written by "Dirk Eddelbuettel <[email protected]>" > -version is 1.0 > +version is 1.1 > requires a2ps 4.10 > > alphabets are > @@ -37,9 +37,9 @@ > CDate, CDbl, CDecl, CInt, Circle, CLng, Close, Const, CSng, CStr, > CurDirrase, Currency, CVar, CVDate, CVErr, Date, Debug, Declare, > DefBool, DefCur, DefDate, DefInt, DefObj, DefSng, DefStr, DefVar, Dim, > - Dir, Do, Double, Each, Else, Elself, Empty, End, EndIf, Eqv, Erase, > + Dir, Do, Double, Each, Else, ElseIf, Empty, End, EndIf, Eqv, Erase, > "Error", Exit, False, Fix, For, Format, FreeFile, Function, Get, > Global, > - GoSub, GoTo, If, Imp, In, Input, InputB, Instr, InstrB, Int, Integer > + GoSub, GoTo, If, Imp, In, Input, InputB, Instr, InstrB, Int, Integer, > Is, LBound, Len, LenB, Let, Like, Line, Load, Local, Lock, Long, Loop, > LSet, Me, Mid, MidB, Mod, Name, New, Next, Not, Nothing, Null, Object, > On, Open, Option, Or, Point, Preserve, Print, Private, Property, PSet, > @@ -66,7 +66,10 @@ > > sequences are > "'" Comment, > - C-string > + "\"" Plain String "\"" Plain > + exceptions are > + "\"\"" > + end exceptions > end sequences > > end style > > -- Masayuki Hatta <mhatta at gmail.com> -- Masayuki Hatta <mhatta at gmail.com> --f46d044784e97ca32004ce76e9c0 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable FYI<br><br><div class=3D"gmail_quote">---------- Forwarded message --------= --<br>From: <b class=3D"gmail_sendername">Masayuki Hatta</b> <span dir=3D"l= tr"><<a href=3D"mailto:[email protected]">[email protected]</a>></span>= <br>Date: 2012/11/15<br> Subject: Re: fixed flaws in vba.ssh<br>To: Stefan Seidler <<a href=3D"ma= ilto:[email protected]">[email protected]</a>><br><br><br>Hi Stefan,<br><br>Thanks= for the fix.=A0 I'm now preparing the next maintenance release of a2ps= , and your fix will definitely be included.<br> <br>Best regards,<br>MH<br><div class=3D"gmail_extra"><div><div class=3D"h5= "><br><br><div class=3D"gmail_quote"> 2012/11/14 Stefan Seidler <span dir=3D"ltr"><<a href=3D"mailto:sseid@web= .de" target=3D"_blank">[email protected]</a>></span><br><blockquote class=3D"= gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-= left:1ex"> Hi,<br> <br> I found two flaws in the Stylesheet for Visual Basic for Applications (vba.= ssh) for a2ps.<br> - ElseIf if misspelled so its not highlighted in the printout<br> - missing comma in the keywords list so "Integer" is always print= ed as "Is"<br> <br> Below I have included the diff -u for patch. This includes the change sugge= sted in <a href=3D"http://lists.gnu.org/archive/html/bug-a2ps/2009-07/msg00= 000.html" target=3D"_blank">http://lists.gnu.org/archive/<u></u>html/bug-a2= ps/2009-07/<u></u>msg00000.html</a> as well.<br> <br> How can this be included into the next release?<br> <br> Best Regards,<br> =A0Stefan<br> <br> <br> --- vba.ssh =A0 =A0 2012-11-14 13:46:30.892129632 +0100<br> +++ vba.ssh_new 2012-11-14 13:46:14.891129423 +0100<br> @@ -24,7 +24,7 @@<br> <br> =A0style "Visual Basic for Applications" is<br> =A0written by "Dirk Eddelbuettel <<a href=3D"mailto:[email protected]"= target=3D"_blank">[email protected]</a>>"<br> -version is 1.0<br> +version is 1.1<br> =A0requires a2ps 4.10<br> <br> =A0alphabets are<br> @@ -37,9 +37,9 @@<br> =A0 =A0 CDate, CDbl, CDecl, CInt, Circle, CLng, Close, Const, CSng, CStr,<b= r> =A0 =A0 CurDirrase, Currency, CVar, CVDate, CVErr, Date, Debug, Declare,<br= > =A0 =A0 DefBool, DefCur, DefDate, DefInt, DefObj, DefSng, DefStr, DefVar, D= im,<br> - =A0 Dir, Do, Double, Each, Else, Elself, Empty, End, EndIf, Eqv, Erase,<b= r> + =A0 Dir, Do, Double, Each, Else, ElseIf, Empty, End, EndIf, Eqv, Erase,<b= r> =A0 =A0 "Error", Exit, False, Fix, For, Format, FreeFile, Functio= n, Get, Global,<br> - =A0 GoSub, GoTo, If, Imp, In, Input, InputB, Instr, InstrB, Int, Integer<= br> + =A0 GoSub, GoTo, If, Imp, In, Input, InputB, Instr, InstrB, Int, Integer,= <br> =A0 =A0 Is, LBound, Len, LenB, Let, Like, Line, Load, Local, Lock, Long, Lo= op,<br> =A0 =A0 LSet, Me, Mid, MidB, Mod, Name, New, Next, Not, Nothing, Null, Obje= ct,<br> =A0 =A0 On, Open, Option, Or, Point, Preserve, Print, Private, Property, PS= et,<br> @@ -66,7 +66,10 @@<br> <br> =A0sequences are<br> =A0 =A0 =A0"'" Comment,<br> - =A0 =A0C-string<br> + =A0 =A0"\"" Plain String "\"" Plain<br> + =A0 =A0 =A0 exceptions are<br> + =A0 =A0 =A0 =A0 =A0"\"\""<br> + =A0 =A0 =A0 end exceptions<br> =A0end sequences<br> <br> =A0end style<br> <br> </blockquote></div><br><br clear=3D"all"><br></div></div><span class=3D"HOE= nZb"><font color=3D"#888888">-- <br>Masayuki Hatta <mhatta at <a href=3D= "http://gmail.com" target=3D"_blank">gmail.com</a>><br><br> </font></span></div> </div><br><br clear=3D"all"><br>-- <br>Masayuki Hatta <mhatta at <a href= =3D"http://gmail.com">gmail.com</a>><br><br> --f46d044784e97ca32004ce76e9c0--