Team Ai
Datasetpublic

codekingpro/portable-devtools

sourceHugging Faceupdated 5mo agoView on Hugging Face
1likes15kdownloads
lscript.vim201 linesDownload Raw Back to syntax
1" Vim syntax file2" Language:	LotusScript3" Maintainer:	Taryn East (taryneast@hotmail.com)4" Last Change:	2003 May 115 6" This is a rough  amalgamation of the visual basic syntax file, and the UltraEdit7" and Textpad syntax highlighters.8" It's not too brilliant given that a) I've never written a syntax.vim file before9" and b) I'm not so crash hot at LotusScript either. If you see any problems10" feel free to email me with them.11 12" quit when a syntax file was already loaded13if exists("b:current_syntax")14  finish15endif16 17" LotusScript is case insensitive18syn case ignore19 20" These are Notes thingies that had an equivalent in the vb highlighter21" or I was already familiar with them22syn keyword lscriptStatement ActivateApp As And Base Beep Call Case ChDir ChDrive Class23syn keyword lscriptStatement Const Dim Declare DefCur DefDbl DefInt DefLng DefSng DefStr24syn keyword lscriptStatement DefVar Do Else %Else ElseIf %ElseIf End %End Erase Event Exit25syn keyword lscriptStatement Explicit FileCopy FALSE For ForAll Function Get GoTo GoSub26syn keyword lscriptStatement If %If In Is Kill Let List Lock Loop MkDir27syn keyword lscriptStatement Name Next New NoCase NoPitch Not Nothing NULL28syn keyword lscriptStatement On Option Or PI Pitch Preserve Private Public29syn keyword lscriptStatement Property Public Put30syn keyword lscriptStatement Randomize ReDim Reset Resume Return RmDir31syn keyword lscriptStatement Select SendKeys SetFileAttr Set Static Sub Then To TRUE32syn keyword lscriptStatement Type Unlock Until While WEnd With Write XOr33 34syn keyword lscriptDatatype Array Currency Double Integer Long Single String String$ Variant35 36syn keyword lscriptNotesType Field Button Navigator37syn keyword lscriptNotesType NotesACL NotesACLEntry NotesAgent NotesDatabase NotesDateRange38syn keyword lscriptNotesType NotesDateTime NotesDbDirectory NotesDocument39syn keyword lscriptNotesType NotesDocumentCollection NotesEmbeddedObject NotesForm40syn keyword lscriptNotesType NotesInternational NotesItem NotesLog NotesName NotesNewsLetter41syn keyword lscriptNotesType NotesMIMEEntry NotesOutline NotesOutlineEntry NotesRegistration42syn keyword lscriptNotesType NotesReplication NotesRichTextItem NotesRichTextParagraphStyle43syn keyword lscriptNotesType NotesRichTextStyle NotesRichTextTab44syn keyword lscriptNotesType NotesSession NotesTimer NotesView NotesViewColumn NotesViewEntry45syn keyword lscriptNotesType NotesViewEntryCollection NotesViewNavigator NotesUIDatabase46syn keyword lscriptNotesType NotesUIDocument NotesUIView NotesUIWorkspace47 48syn keyword lscriptNotesConst ACLLEVEL_AUTHOR ACLLEVEL_DEPOSITOR ACLLEVEL_DESIGNER49syn keyword lscriptNotesConst ACLLEVEL_EDITOR ACLLEVEL_MANAGER ACLLEVEL_NOACCESS50syn keyword lscriptNotesConst ACLLEVEL_READER ACLTYPE_MIXED_GROUP ACLTYPE_PERSON51syn keyword lscriptNotesConst ACLTYPE_PERSON_GROUP ACLTYPE_SERVER ACLTYPE_SERVER_GROUP52syn keyword lscriptNotesConst ACLTYPE_UNSPECIFIED ACTIONCD ALIGN_CENTER53syn keyword lscriptNotesConst ALIGN_FULL ALIGN_LEFT ALIGN_NOWRAP ALIGN_RIGHT54syn keyword lscriptNotesConst ASSISTANTINFO ATTACHMENT AUTHORS COLOR_BLACK55syn keyword lscriptNotesConst COLOR_BLUE COLOR_CYAN COLOR_DARK_BLUE COLOR_DARK_CYAN56syn keyword lscriptNotesConst COLOR_DARK_GREEN COLOR_DARK_MAGENTA COLOR_DARK_RED57syn keyword lscriptNotesConst COLOR_DARK_YELLOW COLOR_GRAY COLOR_GREEN COLOR_LIGHT_GRAY58syn keyword lscriptNotesConst COLOR_MAGENTA COLOR_RED COLOR_WHITE COLOR_YELLOW59syn keyword lscriptNotesConst DATABASE DATETIMES DB_REPLICATION_PRIORITY_HIGH60syn keyword lscriptNotesConst DB_REPLICATION_PRIORITY_LOW DB_REPLICATION_PRIORITY_MED61syn keyword lscriptNotesConst DB_REPLICATION_PRIORITY_NOTSET EFFECTS_EMBOSS62syn keyword lscriptNotesConst EFFECTS_EXTRUDE EFFECTS_NONE EFFECTS_SHADOW63syn keyword lscriptNotesConst EFFECTS_SUBSCRIPT EFFECTS_SUPERSCRIPT EMBED_ATTACHMENT64syn keyword lscriptNotesConst EMBED_OBJECT EMBED_OBJECTLINK EMBEDDEDOBJECT ERRORITEM65syn keyword lscriptNotesConst EV_ALARM EV_COMM EV_MAIL EV_MISC EV_REPLICA EV_RESOURCE66syn keyword lscriptNotesConst EV_SECURITY EV_SERVER EV_UNKNOWN EV_UPDATE FONT_COURIER67syn keyword lscriptNotesConst FONT_HELV FONT_ROMAN FORMULA FT_DATABASE FT_DATE_ASC68syn keyword lscriptNotesConst FT_DATE_DES FT_FILESYSTEM FT_FUZZY FT_SCORES FT_STEMS69syn keyword lscriptNotesConst FT_THESAURUS HTML ICON ID_CERTIFIER ID_FLAT70syn keyword lscriptNotesConst ID_HIERARCHICAL LSOBJECT MIME_PART NAMES NOTESLINKS71syn keyword lscriptNotesConst NOTEREFS NOTES_DESKTOP_CLIENT NOTES_FULL_CLIENT72syn keyword lscriptNotesConst NOTES_LIMITED_CLIENT NUMBERS OTHEROBJECT73syn keyword lscriptNotesConst OUTLINE_CLASS_DATABASE OUTLINE_CLASS_DOCUMENT74syn keyword lscriptNotesConst OUTLINE_CLASS_FOLDER OUTLINE_CLASS_FORM75syn keyword lscriptNotesConst OUTLINE_CLASS_FRAMESET OUTLINE_CLASS_NAVIGATOR76syn keyword lscriptNotesConst OUTLINE_CLASS_PAGE OUTLINE_CLASS_UNKNOWN77syn keyword lscriptNotesConst OUTLINE_CLASS_VIEW OUTLINE_OTHER_FOLDERS_TYPE78syn keyword lscriptNotesConst OUTLINE_OTHER_UNKNOWN_TYPE OUTLINE_OTHER_VIEWS_TYPE79syn keyword lscriptNotesConst OUTLINE_TYPE_ACTION OUTLINE_TYPE_NAMEDELEMENT80syn keyword lscriptNotesConst OUTLINE_TYPE_NOTELINK OUTLINE_TYPE_URL PAGINATE_BEFORE81syn keyword lscriptNotesConst PAGINATE_DEFAULT PAGINATE_KEEP_TOGETHER82syn keyword lscriptNotesConst PAGINATE_KEEP_WITH_NEXT PICKLIST_CUSTOM PICKLIST_NAMES83syn keyword lscriptNotesConst PICKLIST_RESOURCES PICKLIST_ROOMS PROMPT_OK PROMPT_OKCANCELCOMBO84syn keyword lscriptNotesConst PROMPT_OKCANCELEDIT PROMPT_OKCANCELEDITCOMBO PROMPT_OKCANCELLIST85syn keyword lscriptNotesConst PROMPT_OKCANCELLISTMULT PROMPT_PASSWORD PROMPT_YESNO86syn keyword lscriptNotesConst PROMPT_YESNOCANCEL QUERYCD READERS REPLICA_CANDIDATE87syn keyword lscriptNotesConst RICHTEXT RULER_ONE_CENTIMETER RULER_ONE_INCH SEV_FAILURE88syn keyword lscriptNotesConst SEV_FATAL SEV_NORMAL SEV_WARNING1 SEV_WARNING289syn keyword lscriptNotesConst SIGNATURE SPACING_DOUBLE SPACING_ONE_POINT_5090syn keyword lscriptNotesConst SPACING_SINGLE STYLE_NO_CHANGE TAB_CENTER TAB_DECIMAL91syn keyword lscriptNotesConst TAB_LEFT TAB_RIGHT TARGET_ALL_DOCS TARGET_ALL_DOCS_IN_VIEW92syn keyword lscriptNotesConst TARGET_NEW_DOCS TARGET_NEW_OR_MODIFIED_DOCS TARGET_NONE93syn keyword lscriptNotesConst TARGET_RUN_ONCE TARGET_SELECTED_DOCS TARGET_UNREAD_DOCS_IN_VIEW94syn keyword lscriptNotesConst TEMPLATE TEMPLATE_CANDIDATE TEXT TRIGGER_AFTER_MAIL_DELIVERY95syn keyword lscriptNotesConst TRIGGER_BEFORE_MAIL_DELIVERY TRIGGER_DOC_PASTED96syn keyword lscriptNotesConst TRIGGER_DOC_UPDATE TRIGGER_MANUAL TRIGGER_NONE97syn keyword lscriptNotesConst TRIGGER_SCHEDULED UNAVAILABLE UNKNOWN USERDATA98syn keyword lscriptNotesConst USERID VC_ALIGN_CENTER VC_ALIGN_LEFT VC_ALIGN_RIGHT99syn keyword lscriptNotesConst VC_ATTR_PARENS VC_ATTR_PUNCTUATED VC_ATTR_PERCENT100syn keyword lscriptNotesConst VC_FMT_ALWAYS VC_FMT_CURRENCY VC_FMT_DATE VC_FMT_DATETIME101syn keyword lscriptNotesConst VC_FMT_FIXED VC_FMT_GENERAL VC_FMT_HM VC_FMT_HMS102syn keyword lscriptNotesConst VC_FMT_MD VC_FMT_NEVER VC_FMT_SCIENTIFIC103syn keyword lscriptNotesConst VC_FMT_SOMETIMES VC_FMT_TIME VC_FMT_TODAYTIME VC_FMT_YM104syn keyword lscriptNotesConst VC_FMT_YMD VC_FMT_Y4M VC_FONT_BOLD VC_FONT_ITALIC105syn keyword lscriptNotesConst VC_FONT_STRIKEOUT VC_FONT_UNDERLINE VC_SEP_COMMA106syn keyword lscriptNotesConst VC_SEP_NEWLINE VC_SEP_SEMICOLON VC_SEP_SPACE107syn keyword lscriptNotesConst VIEWMAPDATA VIEWMAPLAYOUT VW_SPACING_DOUBLE108syn keyword lscriptNotesConst VW_SPACING_ONE_POINT_25 VW_SPACING_ONE_POINT_50109syn keyword lscriptNotesConst VW_SPACING_ONE_POINT_75 VW_SPACING_SINGLE110 111syn keyword lscriptFunction Abs Asc Atn Atn2 ACos ASin112syn keyword lscriptFunction CCur CDat CDbl Chr Chr$ CInt CLng Command Command$113syn keyword lscriptFunction Cos CSng CStr114syn keyword lscriptFunction CurDir CurDir$ CVar Date Date$ DateNumber DateSerial DateValue115syn keyword lscriptFunction Day Dir Dir$ Environ$ Environ EOF Error Error$ Evaluate Exp116syn keyword lscriptFunction FileAttr FileDateTime FileLen Fix Format Format$ FreeFile117syn keyword lscriptFunction GetFileAttr GetThreadInfo Hex Hex$ Hour118syn keyword lscriptFunction IMESetMode IMEStatus Input Input$ InputB InputB$119syn keyword lscriptFunction InputBP InputBP$ InputBox InputBox$ InStr InStrB InStrBP InstrC120syn keyword lscriptFunction IsA IsArray IsDate IsElement IsList IsNumeric121syn keyword lscriptFunction IsObject IsResponse IsScalar IsUnknown LCase LCase$122syn keyword lscriptFunction Left Left$ LeftB LeftB$ LeftC123syn keyword lscriptFunction LeftBP LeftBP$ Len LenB LenBP LenC Loc LOF Log124syn keyword lscriptFunction LSet LTrim LTrim$ MessageBox Mid Mid$ MidB MidB$ MidC125syn keyword lscriptFunction Minute Month Now Oct Oct$ Responses Right Right$126syn keyword lscriptFunction RightB RightB$ RightBP RightBP$ RightC Round Rnd RSet RTrim RTrim$127syn keyword lscriptFunction Second Seek Sgn Shell Sin Sleep Space Space$ Spc Sqr Str Str$128syn keyword lscriptFunction StrConv StrLeft StrleftBack StrRight StrRightBack129syn keyword lscriptFunction StrCompare Tab Tan Time Time$ TimeNumber Timer130syn keyword lscriptFunction TimeValue Trim Trim$ Today TypeName UCase UCase$131syn keyword lscriptFunction UniversalID Val Weekday Year132 133syn keyword lscriptMethods AppendToTextList ArrayAppend ArrayReplace ArrayGetIndex134syn keyword lscriptMethods Append Bind Close135"syn keyword lscriptMethods Contains136syn keyword lscriptMethods CopyToDatabase CopyAllItems Count CurrentDatabase Delete Execute137syn keyword lscriptMethods GetAllDocumentsByKey GetDatabase GetDocumentByKey138syn keyword lscriptMethods GetDocumentByUNID GetFirstDocument GetFirstItem139syn keyword lscriptMethods GetItems GetItemValue GetNthDocument GetView140syn keyword lscriptMethods IsEmpty IsNull %Include Items141syn keyword lscriptMethods Line LBound LoadMsgText Open Print142syn keyword lscriptMethods RaiseEvent ReplaceItemValue Remove RemoveItem Responses143syn keyword lscriptMethods Save Stop UBound UnprocessedDocuments Write144 145syn keyword lscriptEvents Compare OnError146 147"*************************************************************************************148"These are Notes thingies that I'm not sure how to classify as they had no vb equivalent149" At a wild guess I'd put them as Functions...150" if anyone sees something really out of place... tell me!151 152syn keyword lscriptFunction Access Alias Any Bin Bin$ Binary ByVal153syn keyword lscriptFunction CodeLock CodeLockCheck CodeUnlock CreateLock154syn keyword lscriptFunction CurDrive CurDrive$ DataType DestroyLock Eqv155syn keyword lscriptFunction Erl Err Fraction From FromFunction FullTrim156syn keyword lscriptFunction Imp Int Lib Like ListTag LMBCS LSServer Me157syn keyword lscriptFunction Mod MsgDescription MsgText Output Published158syn keyword lscriptFunction Random Read Shared Step UChr UChr$ Uni Unicode159syn keyword lscriptFunction Until Use UseLSX UString UString$ Width Yield160 161 162syn keyword lscriptTodo contained	TODO163 164"integer number, or floating point number without a dot.165syn match  lscriptNumber		"\<\d\+\>"166"floating point number, with dot167syn match  lscriptNumber		"\<\d\+\.\d*\>"168"floating point number, starting with a dot169syn match  lscriptNumber		"\.\d\+\>"170 171" String and Character constants172syn region  lscriptString		start=+"+  end=+"+173syn region  lscriptComment		start="REM" end="$" contains=lscriptTodo174syn region  lscriptComment		start="'"   end="$" contains=lscriptTodo175syn region  lscriptLineNumber	start="^\d" end="\s"176syn match   lscriptTypeSpecifier	"[a-zA-Z0-9][\$%&!#]"ms=s+1177 178" Define the default highlighting.179" Only when an item doesn't have highlighting yet180 181hi lscriptNotesType	term=underline ctermfg=DarkGreen guifg=SeaGreen gui=bold182 183hi def link lscriptNotesConst	lscriptNotesType184hi def link lscriptLineNumber	Comment185hi def link lscriptDatatype	Type186hi def link lscriptNumber		Number187hi def link lscriptError		Error188hi def link lscriptStatement	Statement189hi def link lscriptString		String190hi def link lscriptComment		Comment191hi def link lscriptTodo		Todo192hi def link lscriptFunction	Identifier193hi def link lscriptMethods		PreProc194hi def link lscriptEvents		Special195hi def link lscriptTypeSpecifier	Type196 197 198let b:current_syntax = "lscript"199 200" vim: ts=8201 
codekingpro/portable-devtools · Team Ai