Added vba as code style

This commit is contained in:
Günther Hutter 2022-03-15 17:19:57 +01:00
parent 354eb3e106
commit 717f4b43e9
2 changed files with 21 additions and 0 deletions

20
style/langdef-vba.tex Normal file
View File

@ -0,0 +1,20 @@
%VBA
\lstdefinelanguage{VBA}{
morekeywords={And, As, Byte, Call, Case, Compare, CDbl, Datebase, Date,
Dim, Else, ElseIf, End, Error, Exit, Explicit, False, Function,
GoTo, If, IIF, Integer, Not, Nothing, Null, Object, On, Option, Or,
Private, Resume, String, Single, Select, Set, Static, Sub, Then, True, To,},
sensitive=false,
morecomment=[l]Rem,
morecomment=[l]',
morestring=[b]",
emph={acFormBar, acEditMenu, acCurrent, acEntire, acMenuVer70, acSaveYes,
acViewNormal, acForm, acDataErrAdded, acNewRec, acDataErrContinue, Cancel,
CancelEvent, Close, CurrentDb, DefaultValue, DateValue, DAO, Description,
DoCmd, DoMenuItem, Err, Error, Error$, $, Execute, FindRecord, Forms,
FindFirst, IsNull, Me, MsgBox, GoToControl, GoToRecord, NewData, Nz,
Maximize, Number, OpenForm, Parent, Recordset, Requery, Response, SetFocus,
stDocName, stLinkCriteria, Value, vbExclamation, vbOK, vbOKCancel,
vbInformation, vbYes, vbNo, vbYesNo, vbCancel, vbQuestion, vbYesNoCancel,
Visible,},
emphstyle=\itshape}

View File

@ -288,6 +288,7 @@ $endif$
\input{style/langdef-html.tex}
\input{style/langdef-xml.tex}
\input{style/langdef-kotlin.tex}
\input{style/langdef-vba.tex}
$endif$
%