[Top][All Lists]

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

fixed flaws in vba.ssh

From: Stefan Seidler
Subject: fixed flaws in vba.ssh
Date: Wed, 14 Nov 2012 14:19:58 +0100
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv: Gecko/20100111 Thunderbird/3.0.1


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 as well.

How can this be included into the next release?

Best Regards,

--- 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 <address@hidden>"
-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

Attachment: vba.ssh_new
Description: Text document

reply via email to

[Prev in Thread] Current Thread [Next in Thread]