From 23a9d47b8f8d385fcb19bf987825e773899d9a60 Mon Sep 17 00:00:00 2001 From: gryf Date: Sun, 9 Jan 2011 12:28:19 +0100 Subject: [PATCH] Added new version of pydoc, added first draft for OpenUI/OPL syntax --- GetLatest/GetLatestVimScripts.dat | 2 +- ftplugin/python/pydoc.vim | 4 +- syntax/opl.vim | 162 ------ syntax/opl.xml | 816 ------------------------------ syntax/pd_opl.syn | 234 --------- syntax/pd_opl.syn2 | 234 --------- syntax/pd_opl.vim | 71 +++ 7 files changed, 75 insertions(+), 1448 deletions(-) delete mode 100644 syntax/opl.vim delete mode 100644 syntax/opl.xml delete mode 100644 syntax/pd_opl.syn delete mode 100644 syntax/pd_opl.syn2 create mode 100644 syntax/pd_opl.vim diff --git a/GetLatest/GetLatestVimScripts.dat b/GetLatest/GetLatestVimScripts.dat index c86f877..481eb6e 100644 --- a/GetLatest/GetLatestVimScripts.dat +++ b/GetLatest/GetLatestVimScripts.dat @@ -8,7 +8,7 @@ ScriptID SourceID Filename 2727 11120 jsbeautify.vim 2666 13424 Mark 2262 8944 occur.vim -910 14349 pydoc.vim +910 14691 pydoc.vim #2421 9423 pysmell.vim 152 3342 showmarks.vim 2540 11006 snipMate.vim diff --git a/ftplugin/python/pydoc.vim b/ftplugin/python/pydoc.vim index f83ddd2..0b8fb4d 100644 --- a/ftplugin/python/pydoc.vim +++ b/ftplugin/python/pydoc.vim @@ -49,8 +49,10 @@ function! ShowPyDoc(name, type) set buftype=nofile setlocal modifiable normal ggdG + " remove function/method arguments let s:name2 = substitute(a:name, '(.*', '', 'g' ) - let s:name2 = substitute(a:name, ':', '', 'g' ) + " remove all colons + let s:name2 = substitute(s:name2, ':', '', 'g' ) if a:type==1 execute "silent read ! " . g:pydoc_cmd . " " . s:name2 else diff --git a/syntax/opl.vim b/syntax/opl.vim deleted file mode 100644 index 42318d0..0000000 --- a/syntax/opl.vim +++ /dev/null @@ -1,162 +0,0 @@ -" Vim syntax file -" Language: OpenUI -" Maintainer: None -" $Id: opl.vim,v 1.1 2004/06/13 17:34:11 vimboss Exp $ - -" Open UI Language - -" For version 5.x: Clear all syntax items -" For version 6.x: Quit when a syntax file was already loaded -if exists("b:current_syntax") - finish -endif - -" case is not significant -syn case ignore - -" A bunch of useful OPL keywords -syn keyword OPLStatement proc endp abs acos addr adjustalloc alert alloc app -syn keyword OPLStatement append appendsprite asc asin at atan back beep -syn keyword OPLStatement begintrans bookmark break busy byref cache -syn keyword OPLStatement cachehdr cacherec cachetidy call cancel caption -syn keyword OPLStatement changesprite chr$ clearflags close closesprite cls -syn keyword OPLStatement cmd$ committrans compact compress const continue -syn keyword OPLStatement copy cos count create createsprite cursor -syn keyword OPLStatement datetosecs datim$ day dayname$ days daystodate -syn keyword OPLStatement dbuttons dcheckbox dchoice ddate declare dedit -syn keyword OPLStatement deditmulti defaultwin deg delete dfile dfloat -syn keyword OPLStatement dialog diaminit diampos dinit dir$ dlong dow -syn keyword OPLStatement dposition drawsprite dtext dtime dxinput edit else -syn keyword OPLStatement elseif enda endif endv endwh entersend entersend0 -syn keyword OPLStatement eof erase err err$ errx$ escape eval exist exp ext -syn keyword OPLStatement external find findfield findlib first fix$ flags -syn keyword OPLStatement flt font freealloc gat gborder gbox gbutton -syn keyword OPLStatement gcircle gclock gclose gcls gcolor gcopy gcreate -syn keyword OPLStatement gcreatebit gdrawobject gellipse gen$ get get$ -syn keyword OPLStatement getcmd$ getdoc$ getevent getevent32 geteventa32 -syn keyword OPLStatement geteventc getlibh gfill gfont ggmode ggrey gheight -syn keyword OPLStatement gidentity ginfo ginfo32 ginvert giprint glineby -syn keyword OPLStatement glineto gloadbit gloadfont global gmove gorder -syn keyword OPLStatement goriginx goriginy goto gotomark gpatt gpeekline -syn keyword OPLStatement gpoly gprint gprintb gprintclip grank gsavebit -syn keyword OPLStatement gscroll gsetpenwidth gsetwin gstyle gtmode gtwidth -syn keyword OPLStatement gunloadfont gupdate guse gvisible gwidth gx -syn keyword OPLStatement gxborder gxprint gy hex$ hour iabs icon if include -syn keyword OPLStatement input insert int intf intrans key key$ keya keyc -syn keyword OPLStatement killmark kmod last lclose left$ len lenalloc -syn keyword OPLStatement linklib ln loadlib loadm loc local lock log lopen -syn keyword OPLStatement lower$ lprint max mcard mcasc mean menu mid$ min -syn keyword OPLStatement minit minute mkdir modify month month$ mpopup -syn keyword OPLStatement newobj newobjh next notes num$ odbinfo off onerr -syn keyword OPLStatement open openr opx os parse$ path pause peek pi -syn keyword OPLStatement pointerfilter poke pos position possprite print -syn keyword OPLStatement put rad raise randomize realloc recsize rename -syn keyword OPLStatement rept$ return right$ rmdir rnd rollback sci$ screen -syn keyword OPLStatement screeninfo second secstodate send setdoc setflags -syn keyword OPLStatement setname setpath sin space sqr statuswin -syn keyword OPLStatement statwininfo std stop style sum tan testevent trap -syn keyword OPLStatement type uadd unloadlib unloadm until update upper$ -syn keyword OPLStatement use usr usr$ usub val var vector week year - - -syn keyword OPLRepeat while do for -syn keyword OPLConstant NULL TRUE -syn keyword OPLType OuiBooleanT OuiCharT OuiDecimalT OuiFloatT OuiIntegerT -syn keyword OPLType OuiLongT OuiPointerT bool char class - -"syn keyword attr -"syn keyword attribute -"syn keyword begin -"syn keyword class -"syn keyword const -"syn keyword constant -"syn keyword declid -"syn keyword div -"syn keyword doobrie -"syn keyword div -"syn keyword not -"syn keyword else -"syn keyword end -"syn keyword enum -"syn keyword export -"syn keyword extern -"syn keyword false -"syn keyword float -"syn keyword func -"syn keyword function -"syn keyword goto -"syn keyword if -"syn keyword in -"syn keyword init -"syn keyword FALSE - -"syn keyword initially -"syn keyword inst -"syn keyword instance -"syn keyword int -"syn keyword local -"syn keyword long -"syn keyword message -"syn keyword mnemonic -"syn keyword not -"syn keyword of -"syn keyword on -"syn keyword or -"syn keyword priv -"syn keyword OuiShortT -"syn keyword OuiStringT -"syn keyword OuiZonedT -"syn keyword TRUE -"syn keyword accelerator -"syn keyword action -"syn keyword alias -"syn keyword and -"syn keyword array -"syn keyword private -"syn keyword pub -"syn keyword public -"syn keyword readonly -"syn keyword record -"syn keyword rem -"syn keyword repeat -"syn keyword return -"syn keyword short -"syn keyword slot -"syn keyword slotno -"syn keyword string -"syn keyword to -"syn keyword true -"syn keyword type -"syn keyword until -"syn keyword var -"syn keyword variable -"syn keyword virtual -"syn keyword when -"syn keyword while -"syn keyword zoned - -" syn keyword OPLStatement rem - - -syn match OPLNumber "\<\d\+\>" -syn match OPLNumber "\<\d\+\.\d*\>" -syn match OPLNumber "\.\d\+\>" - -syn region OPLString start=+"+ end=+"+ -syn region OPLComment start="REM[\t ]" end="$" -syn match OPLMathsOperator "-\|=\|[:<>+\*^/\\]" - - -" Define the default highliting -hi def link OPLStatement Statement -hi def link OPLConstant Constant -hi def link OPLNumber Number -hi def link OPLString String -hi def link OPLComment Comment -hi def link OPLMathsOperator Conditional -hi def link OPLType Type -hi def link OPLError Error - -let b:current_syntax = "opl" - -" vim: ts=8 diff --git a/syntax/opl.xml b/syntax/opl.xml deleted file mode 100644 index 824dd99..0000000 --- a/syntax/opl.xml +++ /dev/null @@ -1,816 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - " - " - - - ' - ' - - - // - ) - = - : - ! - >= - <= - + - - - / - - * - > - < - % - & - | - ^ - ~ - - . - , - ; - ] - [ - ? - - - - KeyAltBack - KeyAltBackTab - KeyAltCancel - KeyAltClrDisp - KeyAltClrLine - KeyAltCopy - KeyAltCut - KeyAltDelChar - KeyAltDelLine - KeyAltDo - KeyAltDown - KeyAltEof - KeyAltExtend - KeyAltForm - KeyAltHelp - KeyAltHome - KeyAltHomeD - KeyAltInsChar - KeyAltInsLine - KeyAltKeys - KeyAltLeft - KeyAltLocal - KeyAltLocalTab - KeyAltMenu - KeyAltMenuBar - KeyAltNext - KeyAltNull - KeyAltPaste - KeyAltPoint - KeyAltPrev - KeyAltPrint - KeyAltReplace - KeyAltReturn - KeyAltRight - KeyAltRollDn - KeyAltRollUp - KeyAltSelect - KeyAltSoft1 - KeyAltSoft10 - KeyAltSoft11 - KeyAltSoft12 - KeyAltSoft13 - KeyAltSoft14 - KeyAltSoft15 - KeyAltSoft16 - KeyAltSoft17 - KeyAltSoft18 - KeyAltSoft19 - KeyAltSoft2 - KeyAltSoft20 - KeyAltSoft21 - KeyAltSoft22 - KeyAltSoft23 - KeyAltSoft24 - KeyAltSoft25 - KeyAltSoft26 - KeyAltSoft27 - KeyAltSoft28 - KeyAltSoft29 - KeyAltSoft3 - KeyAltSoft30 - KeyAltSoft31 - KeyAltSoft32 - KeyAltSoft4 - KeyAltSoft5 - KeyAltSoft6 - KeyAltSoft7 - KeyAltSoft8 - KeyAltSoft9 - KeyAltTab - KeyAltTimer - KeyAltUp - KeyAltWindowList - KeyAltWindowMenu - KeyBack - KeyBackTab - KeyCancel - KeyClrDisp - KeyClrLine - KeyCopy - KeyCut - KeyDelChar - KeyDelLine - KeyDo - KeyDown - KeyEof - KeyExtend - KeyForm - KeyHelp - KeyHome - KeyHomeD - KeyInsChar - KeyInsLine - KeyKeys - KeyLeft - KeyLocal - KeyLocalTab - KeyMenu - KeyMenuBar - KeyNext - KeyNull - KeyPaste - KeyPoint - KeyPrev - KeyPrint - KeyReplace - KeyReturn - KeyRight - KeyRollDn - KeyRollUp - KeySelect - KeySoft1 - KeySoft10 - KeySoft11 - KeySoft12 - KeySoft13 - KeySoft14 - KeySoft15 - KeySoft16 - KeySoft17 - KeySoft18 - KeySoft19 - KeySoft2 - KeySoft20 - KeySoft21 - KeySoft22 - KeySoft23 - KeySoft24 - KeySoft25 - KeySoft26 - KeySoft27 - KeySoft28 - KeySoft29 - KeySoft3 - KeySoft30 - KeySoft31 - KeySoft32 - KeySoft4 - KeySoft5 - KeySoft6 - KeySoft7 - KeySoft8 - KeySoft9 - KeyTab - KeyTimer - KeyUp - KeyWindowList - KeyWindowMenu - OuiDestroy - OuiGetTime - OuiInstantiate - OuiListAppend - OuiListDeleteItem - OuiListFind - OuiListInsertItem - OuiListItems - OuiListNumItems - OuiListReFind - OuiListSort - OuiLookup - OuiPrefsClose - OuiPrefsGetBoolean - OuiPrefsGetEnum - OuiPrefsGetLong - OuiMessageHelponHelp - OuiMsgAbout - OuiMsgClose - OuiMsgCreationAborted - OuiMsgDbCommit - OuiMsgAny - OuiMsgKeyAny - OuiMsgKeyAnyPrintable - OuiMsgMouseAny - OuiMsgMouseAnyDbl - OuiMsgB1Down - OuiMsgB1Drag - OuiMsgB1Up - OuiMsgB2Down - OuiMsgB2Drag - OuiMsgB2Up - OuiMsgB3Down - OuiMsgB3Drag - OuiMsgB3Up - OuiMsgB4Down - OuiMsgB4Drag - OuiMsgB4Up - OuiMsgB5Down - OuiMsgB5Drag - OuiMsgB5Up - OuiMsgMouseB1 - OuiMsgMouseB1Dbl - OuiMsgMouseB1Down - OuiMsgDbCommit - OuiMsgDbCommitResult - OuiMsgDbCommitResult - OuiMsgDbConnect - OuiMsgDbConnectResult - OuiMsgDbDisconnect - OuiMsgDbDisconnectResult - OuiMsgDbExecuteSQL - OuiMsgDbExecuteSQLResult - OuiMsgDefocus - OuiMsgDmDeleteMajor - OuiMsgDmDeleteMinor - OuiMsgDmInsertMajor - OuiMsgDmInsertMinor - OuiMsgDmInvalidateArea - OuiMsgDmNotify - OuiMsgDoublePick - OuiMsgDrag - OuiMsgDragCancel - OuiMsgDragDone - OuiMsgDragHelp - OuiMsgDragMotion - OuiMsgDragStart - OuiMsgDrop - OuiMsgEvaluatorChanged - OuiMsgEvaluatorDrag - OuiMsgExitApplication - OuiMsgFocus - OuiMsgFocusIn - OuiMsgFocusOut - OuiMsgFormStateChanged - OuiMsgGridDragged - OuiMsgHelp - OuiMsgHelpClearStatus - OuiMsgHelpClose - OuiMsgHelpContext - OuiMsgHelpHideHint - OuiMsgHelpIndex - OuiMsgHelpKey - OuiMsgHelpPick - OuiMsgHelpShowHint - OuiMsgHelpShowStatus - OuiMsgInvisible - OuiMsgLockClear - OuiMsgLockException - OuiMsgLockId - OuiMsgLockRelease - OuiMsgLockRequest - OuiMsgLowResources - OuiMsgMDIArrangeIcons - OuiMsgMDICascade - OuiMsgMDIClose - OuiMsgMDITile - OuiMsgMove - OuiMsgNewRadioButton - OuiMsgMouseAnyDown - OuiMsgMouseAnyDrag - OuiMsgMouseAnyUp - OuiMsgMouseB1Down - OuiMsgMouseB1Drag - OuiMsgMouseB1Up - OuiMsgMouseB2Dbl - OuiMsgMouseB2Down - OuiMsgMouseB2Down - OuiMsgMouseB2Drag - OuiMsgMouseB2Up - OuiMsgMouseB2Up - OuiMsgMouseB3Dbl - OuiMsgMouseB3Down - OuiMsgMouseB3Down - OuiMsgMouseB3Drag - OuiMsgMouseB3Up - OuiMsgMouseB3Up - OuiMsgMouseB4Dbl - OuiMsgMouseB4Down - OuiMsgMouseB4Drag - OuiMsgMouseB4Up - OuiMsgMouseB5Dbl - OuiMsgMouseB5Dowkn - OuiMsgMouseB5Drag - OuiMsgMouseB5Up - OuiMsgNoResources - OuiMsgNothingCanHappen - OuiMsgPick - OuiMsgPlace - OuiMsgQueryExecute - OuiMsgQueryExecuteResult - OuiMsgQueryFetchRows - OuiMsgQueryFetchRowsResult - OuiMsgRubberLine - OuiMsgRubberRect - OuiMsgSelect - OuiMsgSelectionChange - OuiMsgSelectionDefocus - OuiMsgSelectionDoubleClick - OuiMsgSessionAborted - OuiMsgSize - OuiMsgTableDataArrived - OuiMsgTimer - OuiMsgTimerCancel - OuiMsgTnfData<Type> - OuiMsgTnfException - OuiMsgTnfInitiateRequest - OuiMsgTnfInitiateSupply - OuiMsgTopLeftChanged - OuiMsgTxnCancel - OuiMsgTxnCommit - OuiMsgTxnData<Type> - OuiMsgTxnException - OuiMsgTxnId - OuiMsgTxnIdRequest - OuiMsgTxnInitiateRequest - OuiMsgTxnInitiateSupply - OuiMsgVisible - OuiMsgWMFocusIn - OuiPrefsGetMask - OuiPrefsGetString - OuiPrefsItemEnumerate - OuiPrefsMerge - OuiPrefsOpen - OuiPrefsSave - OuiPrefsSectionEnumerate - OuiPrefsSetBoolean - OuiPrefsSetEnum - OuiPrefsSetLong - OuiPrefsSetMask - OuiPrefsSetString - OuiPrint - OuiQueueMessage - OuiReCmp - OuiReDestroy - OuiReExtract - OuiReMatch - OuiStrChr - OuiStrIsAlnum - OuiStrIsAlpha - OuiStrIsDigit - OuiStrIsLower - OuiStrIsPunct - OuiStrIsSpace - OuiStrIsUpper - OuiStrLen - OuiStrPad - OuiStrRChr - OuiStrStr - OuiStrToLower - OuiStrToUpper - OuiStrTrim - OuiSubStr - OuiSynchronize - OuiTrace - OuiWebBrowserLoadURL - - AccelLabel - Active - ActiveCell - ActiveCellBackground - ActiveCellForeground - ActivePrefix - ActiveQuery - AlignHoriz - AlignVert - Alignment - AllowClose - AllowMaximize - AllowMinimize - AllowMove - AllowResize - AspectLock - AspectRatio - AutoCommit - AutoFlow - AutoResizePolicy - Background - BaseHeight - BaseWidth - BeepOnDiscard - BorderStyle - BorderStyle - BorderWidth - Bounds - ButtonModifiers - ButtonNumber - Bytes - CatName - CatSetNum - Changed - Class - Closed - ColumnCount - ColumnLengths - ColumnNames - ColumnTypes - ComboBoxStyle - CommitDirection - Connected - CursorName - DataDemandPolicy - DataOrigin - DataPendingPolicy - DatasourceName - DateInputFormat - DecimalPoints - Depth - Direction - DiscardInput - DrawGridColor - DrawGridStyle - DynamicGrid - EdgeStyle - EdgeWidth - Editable - Editable - ErrorText - ExtendClassLibrary - FastDraw - FillAlternate - FillAngle - FocusItem - Font - Font - Font - Font - Font - Foreground - FormState - GUIType - GrabInput - Height - HeightInc - HelpId - IconImage - IconX - Image - ImageData - ImageTileName - Increment - IncrementMulti - IndexMajor - IndexMinor - InputEdit - InputMode - InsensColor - InsensColor - InsertMode - IsDefault - ItemCount - Items - JumpScroll - Label - LabelDisplayPolicy - LastNativeError - Length - LineStyle - LineWidth - LockedColumns - LockedRows - MajorCount - MajorIncrement - MarginHeight - MarginHeight - MarginWidth - MarginWidth - MaxAspectX - MaxAspectY - MaxBytes - MaxBytes - MaxHeight - MaxOffsetHoriz - MaxOffsetVert - MaxWidth - Maximized - MinAspectX - MinAspectY - MinChars - MinChars - MinColumns - MinHeight - MinLines - MinRows - MinWidth - Mnemonic - Modal - Mode - NPoints - NPoints - Name - NativeHandle - NativeHandle - NativeHandle - NavigateLocked - Offset - OffsetHoriz - OffsetVert - OnDesktop - Orientation - OutputEdit - OutputFormat - OverrideRedirect - PageSize - PagesLocked - PagesMemory - PagingPolicy - Parent - PassivePrefix - PasswordChar - Pattern - Placement - PlacementDetail - PlacementPolicy - Points - PositionX - PositionY - PrimarySource - PrimarySource - QueryType - Radio - RadiusMajor - RadiusMinor - RangeHoriz - RangeMajor - RangeMinor - RangeVert - RealizePolicy - RotateAngle - RowMajor - RowMajor - SaveUnder - ScaleX - ScaleY - ScreenHeight, - ScreenWidth - ScrollBarPlacement - ScrollBarTroughColor - ScrollHoriz - ScrollVert - Sector - SelectedAreas - SelectedItemBG - SelectedItemCount - SelectedItemFG - SelectedItemList - SelectedItemMap - SelectedItems - SelectedText - SelectionBackground - SelectionForeground - SelectionLength - SelectionPolicy - SelectionPolicy - SelectionStart - Self - Sensitive - Sensitive - ShortHelpText - ShowButtons - ShowIndicator - ShowMinimize - ShowResizeHandles - ShowSysMenu - ShowTitle - ShowValue - SizeVisible - SoftKey - SpaceColumns - SpaceItems - SpaceRows - SpanX - SpanY - StartAngle - StretchHoriz - StretchVert - Style - Suffix - Template - Thickness - ThumbSize - Title - Title - TitleFont - TitlePlacement - Toggle - TopLeft - Trace - Transient - Traversable - TroughColor - UniformColumns - UniformRows - Units - Updatable - Valid - Value - Value - ValueMax - ValueMin - Visible - VisibleColumns - VisibleItems - VisibleRows - Width - WidthInc - WorldCoords - WrapMode - WrapNavigation - X - Y - - - attr - attribute - begin - bool - char - class - const - constant - declid - div - doobrie - div - not - else - end - enum - export - extern - false - float - for - func - function - goto - if - in - init - FALSE - NULL - TRUE - OuiBooleanT - OuiCharT - OuiDecimalT - OuiFloatT - OuiIntegerT - OuiLongT - OuiPointerT - initially - inst - instance - int - local - long - message - mnemonic - not - of - on - or - priv - OuiShortT - OuiStringT - OuiZonedT - TRUE - accelerator - action - alias - and - array - private - pub - public - readonly - record - rem - repeat - return - short - slot - slotno - string - to - true - type - until - var - variable - virtual - when - while - zoned - - Application - Button - Evaluator - Filledge - Graphic - Menu - OuiObj - Region - Scrollable - dataManager - database - devFontDialog - dialogb - diversion - editText - fontDialog - form - graphicCompound - groupBox - horizontalSep - interactor - label - list - mdiFrameForm - menuBar - menuBarButton - menuButton - menuCascadeButton - menuPushButton - menuRadioButton - menuToggleButton - messageBox - module - multiTextL - multiTextW - openSaveDialog - optionMenu - panel - popupMenu - pulldown - pushButton - query - radioButton - radioPushButton - scene - scrollbar - session - slider - spline - statusText - table - timer - toggleButton - Separator - StandardDialog - Visual - arc - cascade - colorDialog - comboBox - controlBar - togglePushButton - tpMenuBar - tpSpreadSheet - tpStatusBar - tpTable - tpToolBar - verticalSep - - - - - diff --git a/syntax/pd_opl.syn b/syntax/pd_opl.syn deleted file mode 100644 index c865640..0000000 --- a/syntax/pd_opl.syn +++ /dev/null @@ -1,234 +0,0 @@ -#=========================================================== -# -# MED file mode definition file -# Last updated: 02.12.2004 11:42 -# -#=========================================================== - -files: *.opl -title: Open UI's OPL - -default: no -caseSensitive: yes -checkCommentInString: yes -shiftDistance: 1 -tabWidth: 8 -tabLoadExpand: 0 -tabInsAsBlank: 1 - -sectionRegexp: (^[ ]*)(class|function)[ ]+([a-zA-Z0-9_\$]+) -sectionDisplayRegexp: (^[ ]*)(class|function)[ ]+([a-zA-Z0-9_\$]+) *[:\(] *([^\(\)/]*)[\): ]*([^/\(\){}]*) -sectionBrowserOrder: 2, 3, 4, 5 -sectionDisplayOrder: 2, 3 -sectionBrowserMainKey: 3 -sectionDisplay: 5000, 1000 - -wordWrap: disabled 70 >!:~# - -wordSep:'&()[]{}\<>.,;-+*:?!=-|"/~ - -# 3rd party online help -inf: cmd.exe|/C|internet|%h http://info.propack-data.de/Doku/Programmierung/OpenUI/htmlindx.htm * http://info.propack-data.de/Doku/Programmierung/OpenUI/htmlindx.htm - - -# brackets -bracket: ( ) 1 -bracket: { } 1 -bracket: [ ] 0 - - -# Color definitions -defineColor: myGreen 0 100 10 -defineColor: myDarkYellow 150 150 0 -defineColor: myDarkBlue 0 0 150 -defineColor: myDarkRed 200 0 0 -defineColor: myDarkestRed 150 0 0 -defineColor: myLightGray 220 220 220 - - -foregroundColor: black -backgroundColor: white -blockColor: myLightGray - -# Reserved words - -color: blue, normal, blue, bold -token: FALSE OuiBooleanT OuiCharT OuiDecimalT OuiFloatT OuiIntegerT OuiLongT OuiPointerT -token: OuiShortT OuiStringT OuiZonedT TRUE accelerator action alias and array -token: attr attribute begin bool char class const constant declid div doobrie -token: else end enum export extern false float for func function goto if in init -token: initially inst instance int local long message mnemonic not of on or priv -token: private pub public readonly record rem repeat return short slot slotno -token: string to true type until var variable virtual when while zoned - -color: myDarkRed, normal, myDarkRed, normal -token: Application Button Evaluator Filledge Graphic Menu OuiObj Region Scrollable -token: Separator StandardDialog Visual arc cascade colorDialog comboBox controlBar -token: dataManager database devFontDialog dialogb diversion editText fontDialog -token: form graphicCompound groupBox horizontalSep interactor label list mdiFrameForm -token: menuBar menuBarButton menuButton menuCascadeButton menuPushButton menuRadioButton -token: menuToggleButton messageBox module multiTextL multiTextW openSaveDialog -token: optionMenu panel popupMenu pulldown pushButton query radioButton radioPushButton -token: scene scrollbar session slider spline statusText table timer toggleButton -token: togglePushButton tpMenuBar tpSpreadSheet tpStatusBar tpTable tpToolBar -token: verticalSep - -color: myGreen, normal, myGreen, normal -token: AccelLabel Active ActiveCell ActiveCellBackground ActiveCellForeground -token: ActivePrefix ActiveQuery AlignHoriz AlignVert Alignment AllowClose AllowMaximize -token: AllowMinimize AllowMove AllowResize AspectLock AspectRatio AutoCommit AutoFlow -token: AutoResizePolicy BaseHeight BaseWidth BeepOnDiscard BorderStyle BorderStyle -token: BorderWidth Bounds ButtonModifiers ButtonNumber Bytes CatName CatSetNum -token: Changed Class Closed ColumnCount ColumnLengths ColumnNames ColumnTypes -token: ComboBoxStyle CommitDirection Connected CursorName DataDemandPolicy DataOrigin -token: DataPendingPolicy DatasourceName DateInputFormat DecimalPoints Depth Direction -token: DiscardInput DrawGridColor DrawGridStyle DynamicGrid EdgeStyle EdgeWidth -token: Editable Editable ErrorText ExtendClassLibrary FastDraw FillAlternate FillAngle -token: FocusItem Font Font Font Font Font Foreground FormState GUIType GrabInput -token: Height HeightInc HelpId IconImage IconX Image ImageData ImageTileName Increment -token: IncrementMulti IndexMajor IndexMinor InputEdit InputMode InsensColor InsensColor -token: InsertMode IsDefault ItemCount Items JumpScroll Label LabelDisplayPolicy -token: LastNativeError Length LineStyle LineWidth LockedColumns LockedRows MajorCount -token: MajorIncrement MarginHeight MarginHeight MarginWidth MarginWidth MaxAspectX -token: MaxAspectY MaxBytes MaxBytes MaxHeight MaxOffsetHoriz MaxOffsetVert MaxWidth -token: Maximized MinAspectX MinAspectY MinChars MinChars MinColumns MinHeight -token: MinLines MinRows MinWidth Mnemonic Modal Mode NPoints NPoints Name NativeHandle -token: NativeHandle NativeHandle NavigateLocked Offset OffsetHoriz OffsetVert -token: OnDesktop Orientation OutputEdit OutputFormat OverrideRedirect PageSize -token: PagesLocked PagesMemory PagingPolicy Parent PassivePrefix PasswordChar -token: Pattern Placement PlacementDetail PlacementPolicy Points PositionX PositionY -token: PrimarySource PrimarySource QueryType Radio RadiusMajor RadiusMinor RangeHoriz -token: RangeMajor RangeMinor RangeVert RealizePolicy RotateAngle RowMajor RowMajor -token: SaveUnder ScaleX ScaleY ScreenHeight, ScreenWidth ScrollBarPlacement ScrollBarTroughColor -token: ScrollHoriz ScrollVert Sector SelectedAreas SelectedItemBG SelectedItemCount -token: SelectedItemFG SelectedItemList SelectedItemMap SelectedItems SelectedText -token: SelectionBackground SelectionForeground SelectionLength SelectionPolicy -token: SelectionPolicy SelectionStart Self Sensitive Sensitive ShortHelpText ShowButtons -token: ShowIndicator ShowMinimize ShowResizeHandles ShowSysMenu ShowTitle ShowValue -token: SizeVisible SoftKey SpaceColumns SpaceItems SpaceRows SpanX SpanY StartAngle -token: StretchHoriz StretchVert Style Suffix Template Thickness ThumbSize Title -token: Title TitleFont TitlePlacement Toggle TopLeft Trace Transient Traversable -token: TroughColor UniformColumns UniformRows Units Updatable Valid Value Value -token: ValueMax ValueMin Visible VisibleColumns VisibleItems VisibleRows Width -token: WidthInc WorldCoords WrapMode WrapNavigation X Y - -color: myDarkestRed, normal, myDarkestRed, normal -token: OuiDestroy OuiGetTime OuiInstantiate OuiListAppend OuiListDeleteItem OuiListFind -token: OuiListInsertItem OuiListItems OuiListNumItems OuiListReFind OuiListSort -token: OuiLookup OuiPrefsClose OuiPrefsGetBoolean OuiPrefsGetEnum OuiPrefsGetLong -token: OuiPrefsGetMask OuiPrefsGetString OuiPrefsItemEnumerate OuiPrefsMerge OuiPrefsOpen -token: OuiPrefsSave OuiPrefsSectionEnumerate OuiPrefsSetBoolean OuiPrefsSetEnum -token: OuiPrefsSetLong OuiPrefsSetMask OuiPrefsSetString OuiPrint OuiQueueMessage -token: OuiReCmp OuiReDestroy OuiReExtract OuiReMatch OuiStrChr OuiStrIsAlnum OuiStrIsAlpha -token: OuiStrIsDigit OuiStrIsLower OuiStrIsPunct OuiStrIsSpace OuiStrIsUpper OuiStrLen -token: OuiStrPad OuiStrRChr OuiStrStr OuiStrToLower OuiStrToUpper OuiStrTrim OuiSubStr -token: OuiSynchronize OuiTrace OuiWebBrowserLoadURL - -color: myDarkestRed, normal, myDarkestRed, normal -token: KeyAltBack KeyAltBackTab KeyAltCancel KeyAltClrDisp KeyAltClrLine KeyAltCopy -token: KeyAltCut KeyAltDelChar KeyAltDelLine KeyAltDo KeyAltDown KeyAltEof KeyAltExtend -token: KeyAltForm KeyAltHelp KeyAltHome KeyAltHomeD KeyAltInsChar KeyAltInsLine -token: KeyAltKeys KeyAltLeft KeyAltLocal KeyAltLocalTab KeyAltMenu KeyAltMenuBar -token: KeyAltNext KeyAltNull KeyAltPaste KeyAltPoint KeyAltPrev KeyAltPrint KeyAltReplace -token: KeyAltReturn KeyAltRight KeyAltRollDn KeyAltRollUp KeyAltSelect KeyAltSoft1 -token: KeyAltSoft10 KeyAltSoft11 KeyAltSoft12 KeyAltSoft13 KeyAltSoft14 KeyAltSoft15 -token: KeyAltSoft16 KeyAltSoft17 KeyAltSoft18 KeyAltSoft19 KeyAltSoft2 KeyAltSoft20 -token: KeyAltSoft21 KeyAltSoft22 KeyAltSoft23 KeyAltSoft24 KeyAltSoft25 KeyAltSoft26 -token: KeyAltSoft27 KeyAltSoft28 KeyAltSoft29 KeyAltSoft3 KeyAltSoft30 KeyAltSoft31 -token: KeyAltSoft32 KeyAltSoft4 KeyAltSoft5 KeyAltSoft6 KeyAltSoft7 KeyAltSoft8 -token: KeyAltSoft9 KeyAltTab KeyAltTimer KeyAltUp KeyAltWindowList KeyAltWindowMenu -token: KeyBack KeyBackTab KeyCancel KeyClrDisp KeyClrLine KeyCopy KeyCut KeyDelChar -token: KeyDelLine KeyDo KeyDown KeyEof KeyExtend KeyForm KeyHelp KeyHome KeyHomeD -token: KeyInsChar KeyInsLine KeyKeys KeyLeft KeyLocal KeyLocalTab KeyMenu KeyMenuBar -token: KeyNext KeyNull KeyPaste KeyPoint KeyPrev KeyPrint KeyReplace KeyReturn -token: KeyRight KeyRollDn KeyRollUp KeySelect KeySoft1 KeySoft10 KeySoft11 KeySoft12 -token: KeySoft13 KeySoft14 KeySoft15 KeySoft16 KeySoft17 KeySoft18 KeySoft19 KeySoft2 -token: KeySoft20 KeySoft21 KeySoft22 KeySoft23 KeySoft24 KeySoft25 KeySoft26 KeySoft27 -token: KeySoft28 KeySoft29 KeySoft3 KeySoft30 KeySoft31 KeySoft32 KeySoft4 KeySoft5 -token: KeySoft6 KeySoft7 KeySoft8 KeySoft9 KeyTab KeyTimer KeyUp KeyWindowList -token: KeyWindowMenu - -color: myDarkestRed, normal, myDarkestRed, normal -token: OuiMsgAny OuiMsgKeyAny OuiMsgKeyAnyPrintable OuiMsgMouseAny OuiMsgMouseAnyDbl -token: OuiMsgMouseAnyDown OuiMsgMouseAnyDrag OuiMsgMouseAnyUp - -color: myDarkestRed, normal, myDarkestRed, normal -token: OuiMsgB1Down OuiMsgB1Drag OuiMsgB1Up OuiMsgB2Down OuiMsgB2Drag OuiMsgB2Up -token: OuiMsgB3Down OuiMsgB3Drag OuiMsgB3Up OuiMsgB4Down OuiMsgB4Drag OuiMsgB4Up -token: OuiMsgB5Down OuiMsgB5Drag OuiMsgB5Up OuiMsgMouseB1 OuiMsgMouseB1Dbl OuiMsgMouseB1Down -token: OuiMsgMouseB1Down OuiMsgMouseB1Drag OuiMsgMouseB1Up OuiMsgMouseB2Dbl OuiMsgMouseB2Down -token: OuiMsgMouseB2Down OuiMsgMouseB2Drag OuiMsgMouseB2Up OuiMsgMouseB2Up OuiMsgMouseB3Dbl -token: OuiMsgMouseB3Down OuiMsgMouseB3Down OuiMsgMouseB3Drag OuiMsgMouseB3Up OuiMsgMouseB3Up -token: OuiMsgMouseB4Dbl OuiMsgMouseB4Down OuiMsgMouseB4Drag OuiMsgMouseB4Up OuiMsgMouseB5Dbl -token: OuiMsgMouseB5Dowkn OuiMsgMouseB5Drag OuiMsgMouseB5Up - -color: myDarkestRed, normal, myDarkestRed, normal -token: OuiMessageHelponHelp OuiMsgAbout OuiMsgClose OuiMsgCreationAborted OuiMsgDbCommit -token: OuiMsgDbCommit OuiMsgDbCommitResult OuiMsgDbCommitResult OuiMsgDbConnect -token: OuiMsgDbConnectResult OuiMsgDbDisconnect OuiMsgDbDisconnectResult OuiMsgDbExecuteSQL -token: OuiMsgDbExecuteSQLResult OuiMsgDefocus OuiMsgDmDeleteMajor OuiMsgDmDeleteMinor -token: OuiMsgDmInsertMajor OuiMsgDmInsertMinor OuiMsgDmInvalidateArea OuiMsgDmNotify -token: OuiMsgDoublePick OuiMsgDrag OuiMsgDragCancel OuiMsgDragDone OuiMsgDragHelp -token: OuiMsgDragMotion OuiMsgDragStart OuiMsgDrop OuiMsgEvaluatorChanged OuiMsgEvaluatorDrag -token: OuiMsgExitApplication OuiMsgFocus OuiMsgFocusIn OuiMsgFocusOut OuiMsgFormStateChanged -token: OuiMsgGridDragged OuiMsgHelp OuiMsgHelpClearStatus OuiMsgHelpClose OuiMsgHelpContext -token: OuiMsgHelpHideHint OuiMsgHelpIndex OuiMsgHelpKey OuiMsgHelpPick OuiMsgHelpShowHint -token: OuiMsgHelpShowStatus OuiMsgInvisible OuiMsgLockClear OuiMsgLockException -token: OuiMsgLockId OuiMsgLockRelease OuiMsgLockRequest OuiMsgLowResources OuiMsgMDIArrangeIcons -token: OuiMsgMDICascade OuiMsgMDIClose OuiMsgMDITile OuiMsgMove OuiMsgNewRadioButton -token: OuiMsgNoResources OuiMsgNothingCanHappen OuiMsgPick OuiMsgPlace OuiMsgQueryExecute -token: OuiMsgQueryExecuteResult OuiMsgQueryFetchRows OuiMsgQueryFetchRowsResult -token: OuiMsgRubberLine OuiMsgRubberRect OuiMsgSelect OuiMsgSelectionChange OuiMsgSelectionDefocus -token: OuiMsgSelectionDoubleClick OuiMsgSessionAborted OuiMsgSize OuiMsgTableDataArrived -token: OuiMsgTimer OuiMsgTimerCancel OuiMsgTnfData OuiMsgTnfException OuiMsgTnfInitiateRequest -token: OuiMsgTnfInitiateSupply OuiMsgTopLeftChanged OuiMsgTxnCancel OuiMsgTxnCommit -token: OuiMsgTxnData OuiMsgTxnException OuiMsgTxnId OuiMsgTxnIdRequest OuiMsgTxnInitiateRequest -token: OuiMsgTxnInitiateSupply OuiMsgVisible OuiMsgWMFocusIn - -color: red, normal, red, bold -token: FALSE NULL TRUE - -color: darkred, normal, darkred, normal -token: div not - -# Comments -color: darkcyan, normal, darkcyan, outline -eolCom: // -comCol: 0 - -openCom: /* -closeCom: */ - -# Symbols - -color: darkpink, normal, darkpink, italic -string: " - -color: darkpink, normal, darkpink, italic -char: ' - -color: red, normal, red, normal -literal: \ - -color: myDarkBlue, normal, myDarkBlue, bold -funcParml: ( - -color: myDarkYellow, normal, myDarkYellow, normal -decPrefix: - -color: darkgreen, normal, darkgreen, normal -hexPrefix: 0X - -color: darkgray, normal, darkgray, normal -octalPrefix: 0 - -numPostfix: L - -color: red, normal, red, normal -symbol: ><{}()+-:&!|=~?.;,^/* -color: red, normal, red, normal -symbol: [] - - -#=========================================================== - diff --git a/syntax/pd_opl.syn2 b/syntax/pd_opl.syn2 deleted file mode 100644 index 54048df..0000000 --- a/syntax/pd_opl.syn2 +++ /dev/null @@ -1,234 +0,0 @@ -#=========================================================== -# -# MED file mode definition file -# Last updated: 12.07.2002 20:10 -# -#=========================================================== - -files: *.opl -title: Open UI's OPL - -default: no -caseSensitive: yes -checkCommentInString: yes -shiftDistance: 1 -tabWidth: 2 -tabLoadExpand: 0 -tabInsAsBlank: 1 - -sectionRegexp: (^[ ]*)(class|function)[ ]+([a-zA-Z0-9_\$]+) -sectionDisplayRegexp: (^[ ]*)(class|function)[ ]+([a-zA-Z0-9_\$]+) -sectionBrowserOrder: 2, 3 -sectionDisplayOrder: 2, 3 -sectionBrowserMainKey: 3 -sectionDisplay: 5000, 1000 - -wordWrap: disabled 70 >!:~# - -wordSep:'&()[]{}\<>.,;-+*:?!=-|"/~ - -# 3rd party online help -inf: netscape.cmd|%h http://info.propack-data.de/Doku/Programmierung/OpenUI/htmlindx.htm * http://info.propack-data.de/Doku/Programmierung/OpenUI/htmlindx.htm - - -# brackets -bracket: ( ) 1 -bracket: { } 1 -bracket: [ ] 0 - - -# Color definitions -defineColor: myGreen 0 100 10 -defineColor: myDarkYellow 150 150 0 -defineColor: myDarkBlue 0 0 150 -defineColor: myDarkRed 200 0 0 -defineColor: myDarkestRed 150 0 0 -defineColor: myLightGray 220 220 220 - - -foregroundColor: black -backgroundColor: white -blockColor: myLightGray - -# Reserved words - -color: blue, normal, blue, bold -token: FALSE OuiBooleanT OuiCharT OuiDecimalT OuiFloatT OuiIntegerT OuiLongT OuiPointerT -token: OuiShortT OuiStringT OuiZonedT TRUE accelerator action alias and array -token: attr attribute begin bool char class const constant declid div doobrie -token: else end enum export extern false float for func function goto if in init -token: initially inst instance int local long message mnemonic not of on or priv -token: private pub public readonly record rem repeat return short slot slotno -token: string to true type until var variable virtual when while zoned - -color: myDarkRed, normal, myDarkRed, normal -token: Application Button Evaluator Filledge Graphic Menu OuiObj Region Scrollable -token: Separator StandardDialog Visual arc cascade colorDialog comboBox controlBar -token: dataManager database devFontDialog dialogb diversion editText fontDialog -token: form graphicCompound groupBox horizontalSep interactor label list mdiFrameForm -token: menuBar menuBarButton menuButton menuCascadeButton menuPushButton menuRadioButton -token: menuToggleButton messageBox module multiTextL multiTextW openSaveDialog -token: optionMenu panel popupMenu pulldown pushButton query radioButton radioPushButton -token: scene scrollbar session slider spline statusText table timer toggleButton -token: togglePushButton tpMenuBar tpSpreadSheet tpStatusBar tpTable tpToolBar -token: verticalSep - -color: myGreen, normal, myGreen, normal -token: AccelLabel Active ActiveCell ActiveCellBackground ActiveCellForeground -token: ActivePrefix ActiveQuery AlignHoriz AlignVert Alignment AllowClose AllowMaximize -token: AllowMinimize AllowMove AllowResize AspectLock AspectRatio AutoCommit AutoFlow -token: AutoResizePolicy BaseHeight BaseWidth BeepOnDiscard BorderStyle BorderStyle -token: BorderWidth Bounds ButtonModifiers ButtonNumber Bytes CatName CatSetNum -token: Changed Class Closed ColumnCount ColumnLengths ColumnNames ColumnTypes -token: ComboBoxStyle CommitDirection Connected CursorName DataDemandPolicy DataOrigin -token: DataPendingPolicy DatasourceName DateInputFormat DecimalPoints Depth Direction -token: DiscardInput DrawGridColor DrawGridStyle DynamicGrid EdgeStyle EdgeWidth -token: Editable Editable ErrorText ExtendClassLibrary FastDraw FillAlternate FillAngle -token: FocusItem Font Font Font Font Font Foreground FormState GUIType GrabInput -token: Height HeightInc HelpId IconImage IconX Image ImageData ImageTileName Increment -token: IncrementMulti IndexMajor IndexMinor InputEdit InputMode InsensColor InsensColor -token: InsertMode IsDefault ItemCount Items JumpScroll Label LabelDisplayPolicy -token: LastNativeError Length LineStyle LineWidth LockedColumns LockedRows MajorCount -token: MajorIncrement MarginHeight MarginHeight MarginWidth MarginWidth MaxAspectX -token: MaxAspectY MaxBytes MaxBytes MaxHeight MaxOffsetHoriz MaxOffsetVert MaxWidth -token: Maximized MinAspectX MinAspectY MinChars MinChars MinColumns MinHeight -token: MinLines MinRows MinWidth Mnemonic Modal Mode NPoints NPoints Name NativeHandle -token: NativeHandle NativeHandle NavigateLocked Offset OffsetHoriz OffsetVert -token: OnDesktop Orientation OutputEdit OutputFormat OverrideRedirect PageSize -token: PagesLocked PagesMemory PagingPolicy Parent PassivePrefix PasswordChar -token: Pattern Placement PlacementDetail PlacementPolicy Points PositionX PositionY -token: PrimarySource PrimarySource QueryType Radio RadiusMajor RadiusMinor RangeHoriz -token: RangeMajor RangeMinor RangeVert RealizePolicy RotateAngle RowMajor RowMajor -token: SaveUnder ScaleX ScaleY ScreenHeight, ScreenWidth ScrollBarPlacement ScrollBarTroughColor -token: ScrollHoriz ScrollVert Sector SelectedAreas SelectedItemBG SelectedItemCount -token: SelectedItemFG SelectedItemList SelectedItemMap SelectedItems SelectedText -token: SelectionBackground SelectionForeground SelectionLength SelectionPolicy -token: SelectionPolicy SelectionStart Self Sensitive Sensitive ShortHelpText ShowButtons -token: ShowIndicator ShowMinimize ShowResizeHandles ShowSysMenu ShowTitle ShowValue -token: SizeVisible SoftKey SpaceColumns SpaceItems SpaceRows SpanX SpanY StartAngle -token: StretchHoriz StretchVert Style Suffix Template Thickness ThumbSize Title -token: Title TitleFont TitlePlacement Toggle TopLeft Trace Transient Traversable -token: TroughColor UniformColumns UniformRows Units Updatable Valid Value Value -token: ValueMax ValueMin Visible VisibleColumns VisibleItems VisibleRows Width -token: WidthInc WorldCoords WrapMode WrapNavigation X Y - -color: myDarkestRed, normal, myDarkestRed, normal -token: OuiDestroy OuiGetTime OuiInstantiate OuiListAppend OuiListDeleteItem OuiListFind -token: OuiListInsertItem OuiListItems OuiListNumItems OuiListReFind OuiListSort -token: OuiLookup OuiPrefsClose OuiPrefsGetBoolean OuiPrefsGetEnum OuiPrefsGetLong -token: OuiPrefsGetMask OuiPrefsGetString OuiPrefsItemEnumerate OuiPrefsMerge OuiPrefsOpen -token: OuiPrefsSave OuiPrefsSectionEnumerate OuiPrefsSetBoolean OuiPrefsSetEnum -token: OuiPrefsSetLong OuiPrefsSetMask OuiPrefsSetString OuiPrint OuiQueueMessage -token: OuiReCmp OuiReDestroy OuiReExtract OuiReMatch OuiStrChr OuiStrIsAlnum OuiStrIsAlpha -token: OuiStrIsDigit OuiStrIsLower OuiStrIsPunct OuiStrIsSpace OuiStrIsUpper OuiStrLen -token: OuiStrPad OuiStrRChr OuiStrStr OuiStrToLower OuiStrToUpper OuiStrTrim OuiSubStr -token: OuiSynchronize OuiTrace OuiWebBrowserLoadURL - -color: myDarkestRed, normal, myDarkestRed, normal -token: KeyAltBack KeyAltBackTab KeyAltCancel KeyAltClrDisp KeyAltClrLine KeyAltCopy -token: KeyAltCut KeyAltDelChar KeyAltDelLine KeyAltDo KeyAltDown KeyAltEof KeyAltExtend -token: KeyAltForm KeyAltHelp KeyAltHome KeyAltHomeD KeyAltInsChar KeyAltInsLine -token: KeyAltKeys KeyAltLeft KeyAltLocal KeyAltLocalTab KeyAltMenu KeyAltMenuBar -token: KeyAltNext KeyAltNull KeyAltPaste KeyAltPoint KeyAltPrev KeyAltPrint KeyAltReplace -token: KeyAltReturn KeyAltRight KeyAltRollDn KeyAltRollUp KeyAltSelect KeyAltSoft1 -token: KeyAltSoft10 KeyAltSoft11 KeyAltSoft12 KeyAltSoft13 KeyAltSoft14 KeyAltSoft15 -token: KeyAltSoft16 KeyAltSoft17 KeyAltSoft18 KeyAltSoft19 KeyAltSoft2 KeyAltSoft20 -token: KeyAltSoft21 KeyAltSoft22 KeyAltSoft23 KeyAltSoft24 KeyAltSoft25 KeyAltSoft26 -token: KeyAltSoft27 KeyAltSoft28 KeyAltSoft29 KeyAltSoft3 KeyAltSoft30 KeyAltSoft31 -token: KeyAltSoft32 KeyAltSoft4 KeyAltSoft5 KeyAltSoft6 KeyAltSoft7 KeyAltSoft8 -token: KeyAltSoft9 KeyAltTab KeyAltTimer KeyAltUp KeyAltWindowList KeyAltWindowMenu -token: KeyBack KeyBackTab KeyCancel KeyClrDisp KeyClrLine KeyCopy KeyCut KeyDelChar -token: KeyDelLine KeyDo KeyDown KeyEof KeyExtend KeyForm KeyHelp KeyHome KeyHomeD -token: KeyInsChar KeyInsLine KeyKeys KeyLeft KeyLocal KeyLocalTab KeyMenu KeyMenuBar -token: KeyNext KeyNull KeyPaste KeyPoint KeyPrev KeyPrint KeyReplace KeyReturn -token: KeyRight KeyRollDn KeyRollUp KeySelect KeySoft1 KeySoft10 KeySoft11 KeySoft12 -token: KeySoft13 KeySoft14 KeySoft15 KeySoft16 KeySoft17 KeySoft18 KeySoft19 KeySoft2 -token: KeySoft20 KeySoft21 KeySoft22 KeySoft23 KeySoft24 KeySoft25 KeySoft26 KeySoft27 -token: KeySoft28 KeySoft29 KeySoft3 KeySoft30 KeySoft31 KeySoft32 KeySoft4 KeySoft5 -token: KeySoft6 KeySoft7 KeySoft8 KeySoft9 KeyTab KeyTimer KeyUp KeyWindowList -token: KeyWindowMenu - -color: myDarkestRed, normal, myDarkestRed, normal -token: OuiMsgAny OuiMsgKeyAny OuiMsgKeyAnyPrintable OuiMsgMouseAny OuiMsgMouseAnyDbl -token: OuiMsgMouseAnyDown OuiMsgMouseAnyDrag OuiMsgMouseAnyUp - -color: myDarkestRed, normal, myDarkestRed, normal -token: OuiMsgB1Down OuiMsgB1Drag OuiMsgB1Up OuiMsgB2Down OuiMsgB2Drag OuiMsgB2Up -token: OuiMsgB3Down OuiMsgB3Drag OuiMsgB3Up OuiMsgB4Down OuiMsgB4Drag OuiMsgB4Up -token: OuiMsgB5Down OuiMsgB5Drag OuiMsgB5Up OuiMsgMouseB1 OuiMsgMouseB1Dbl OuiMsgMouseB1Down -token: OuiMsgMouseB1Down OuiMsgMouseB1Drag OuiMsgMouseB1Up OuiMsgMouseB2Dbl OuiMsgMouseB2Down -token: OuiMsgMouseB2Down OuiMsgMouseB2Drag OuiMsgMouseB2Up OuiMsgMouseB2Up OuiMsgMouseB3Dbl -token: OuiMsgMouseB3Down OuiMsgMouseB3Down OuiMsgMouseB3Drag OuiMsgMouseB3Up OuiMsgMouseB3Up -token: OuiMsgMouseB4Dbl OuiMsgMouseB4Down OuiMsgMouseB4Drag OuiMsgMouseB4Up OuiMsgMouseB5Dbl -token: OuiMsgMouseB5Dowkn OuiMsgMouseB5Drag OuiMsgMouseB5Up - -color: myDarkestRed, normal, myDarkestRed, normal -token: OuiMessageHelponHelp OuiMsgAbout OuiMsgClose OuiMsgCreationAborted OuiMsgDbCommit -token: OuiMsgDbCommit OuiMsgDbCommitResult OuiMsgDbCommitResult OuiMsgDbConnect -token: OuiMsgDbConnectResult OuiMsgDbDisconnect OuiMsgDbDisconnectResult OuiMsgDbExecuteSQL -token: OuiMsgDbExecuteSQLResult OuiMsgDefocus OuiMsgDmDeleteMajor OuiMsgDmDeleteMinor -token: OuiMsgDmInsertMajor OuiMsgDmInsertMinor OuiMsgDmInvalidateArea OuiMsgDmNotify -token: OuiMsgDoublePick OuiMsgDrag OuiMsgDragCancel OuiMsgDragDone OuiMsgDragHelp -token: OuiMsgDragMotion OuiMsgDragStart OuiMsgDrop OuiMsgEvaluatorChanged OuiMsgEvaluatorDrag -token: OuiMsgExitApplication OuiMsgFocus OuiMsgFocusIn OuiMsgFocusOut OuiMsgFormStateChanged -token: OuiMsgGridDragged OuiMsgHelp OuiMsgHelpClearStatus OuiMsgHelpClose OuiMsgHelpContext -token: OuiMsgHelpHideHint OuiMsgHelpIndex OuiMsgHelpKey OuiMsgHelpPick OuiMsgHelpShowHint -token: OuiMsgHelpShowStatus OuiMsgInvisible OuiMsgLockClear OuiMsgLockException -token: OuiMsgLockId OuiMsgLockRelease OuiMsgLockRequest OuiMsgLowResources OuiMsgMDIArrangeIcons -token: OuiMsgMDICascade OuiMsgMDIClose OuiMsgMDITile OuiMsgMove OuiMsgNewRadioButton -token: OuiMsgNoResources OuiMsgNothingCanHappen OuiMsgPick OuiMsgPlace OuiMsgQueryExecute -token: OuiMsgQueryExecuteResult OuiMsgQueryFetchRows OuiMsgQueryFetchRowsResult -token: OuiMsgRubberLine OuiMsgRubberRect OuiMsgSelect OuiMsgSelectionChange OuiMsgSelectionDefocus -token: OuiMsgSelectionDoubleClick OuiMsgSessionAborted OuiMsgSize OuiMsgTableDataArrived -token: OuiMsgTimer OuiMsgTimerCancel OuiMsgTnfData OuiMsgTnfException OuiMsgTnfInitiateRequest -token: OuiMsgTnfInitiateSupply OuiMsgTopLeftChanged OuiMsgTxnCancel OuiMsgTxnCommit -token: OuiMsgTxnData OuiMsgTxnException OuiMsgTxnId OuiMsgTxnIdRequest OuiMsgTxnInitiateRequest -token: OuiMsgTxnInitiateSupply OuiMsgVisible OuiMsgWMFocusIn - -color: red, normal, red, bold -token: FALSE NULL TRUE - -color: darkred, normal, darkred, normal -token: div not - -# Comments -color: darkcyan, normal, darkcyan, outline -eolCom: // -comCol: 0 - -openCom: /* -closeCom: */ - -# Symbols - -color: darkpink, normal, darkpink, italic -string: " - -color: darkpink, normal, darkpink, italic -char: ' - -color: red, normal, red, normal -literal: \ - -color: myDarkBlue, normal, myDarkBlue, bold -funcParml: ( - -color: myDarkYellow, normal, myDarkYellow, normal -decPrefix: - -color: darkgreen, normal, darkgreen, normal -hexPrefix: 0X - -color: darkgray, normal, darkgray, normal -octalPrefix: 0 - -numPostfix: L - -color: red, normal, red, normal -symbol: ><{}()+-:&!|=~?.;,^/* -color: red, normal, red, normal -symbol: [] - - -#=========================================================== - diff --git a/syntax/pd_opl.vim b/syntax/pd_opl.vim new file mode 100644 index 0000000..bb73bc2 --- /dev/null +++ b/syntax/pd_opl.vim @@ -0,0 +1,71 @@ +" Vim syntax file +" Language: OpenUI/OPL +" Maintainer: Roman 'gryf' Dobosz +" $Id: opl.vim,v 1.0 2011/01/09 17:34:11 vimboss Exp $ + +" Open UI Language +if exists("b:current_syntax") + finish +endif + +syn region OPLString start=+"+ end=+"+ contains=@Spell +syn region OPLSString start=+'+ end=+'+ contains=@Spell +syn match OPLNumber "\<\d\+\>" display +syn match OPLFloat "\<\d\+\.\d\+\>" +"syn match OPLFloat "\.\d\+\>" + +syn keyword OPLCommentTodo TODO FIXME XXX TBD +syn match OPLLineComment "\/\/.*" contains=@Spell,OPLCommentTodo +syn region OPLComment start="/\*" end="\*/" contains=@Spell,OPLCommentTodo + +syn keyword OPLConditional if else when goto +syn keyword OPLRepeat for while +syn keyword OPLConstant TRUE FALSE true false NULL + +syn keyword OPLType OuiBooleanT OuiCharT OuiDecimalT OuiFloatT OuiIntegerT +syn keyword OPLType OuiLongT OuiPointerT OuiShortT OuiStringT +syn keyword OPLType array bool char const constant enum float inst +syn keyword OPLType int long message record short string + +syn keyword OPLStatement class of return const var module on message +syn keyword OPLStatement initially instance private public type var +syn keyword OPLStatement variable when while + +syn keyword OPLOperator and in not div + +syn keyword OPLStatement class function nextgroup=OPLFunction skipwhite +syn match OPLFunction "[a-zA-Z_][a-zA-Z0-9_]*" display contained +syn match OPLSpecial "::\~\?\zs\h\w*\ze([^)]*\()\s*\(const\)\?\)\?" +syn match OPLKeyword "\^\w*\~\?" + +" Highlight Class and Function names +syn match OPLCustomParen "(" "contains=Paren,cCppParen +syn match OPLCustomFunction "\w\+\s*(" contains=OPLCustomParen +"syn match OPLCustomScope "::" +"syn match OPLCustomClass "\w\+\s*::" contains=OPLCustomScope + +" Folding +syn region OPLFold start="{" end="}" transparent fold +"syn sync fromstart +setlocal foldmethod=syntax +setlocal nofoldenable + +" Define the default highliting +hi def link OPLComment Comment +hi def link OPLLineComment Comment +hi def link OPLNumber Number +hi def link OPLFloat Float +hi def link OPLFunction Function +hi def link OPLConstant Constant +hi def link OPLStatement Statement +hi def link OPLString String +hi def link OPLSString String +hi def link OPLType Type +hi def link OPLConditional Conditional +hi def link OPLCommentTodo Todo +hi def link OPLSpecial Special +hi def link OPLKeyword Keyword +hi def link OPLCustomFunction Special + +let b:current_syntax = "opl" +" vim: ts=8