autocolors 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- data/{format-samples → .attic/format-samples}/1/Sweyla866607.css +0 -0
- data/{format-samples → .attic/format-samples}/1/Sweyla866607.tmTheme +0 -0
- data/{format-samples → .attic/format-samples}/1/Sweyla866607.txt +0 -0
- data/{format-samples → .attic/format-samples}/1/sweyla866607.el +0 -0
- data/{format-samples → .attic/format-samples}/1/sweyla866607.vim +0 -0
- data/.helper-vimrc +34 -0
- data/.samples/vim/colors/aphakia.vim +487 -0
- data/.samples/vim/colors/ascian.vim +487 -0
- data/.samples/vim/colors/bolognese.vim +487 -0
- data/.samples/vim/colors/breeze.vim +487 -0
- data/.samples/vim/colors/celemin.vim +487 -0
- data/.samples/vim/colors/coquilla.vim +487 -0
- data/.samples/vim/colors/filasse.vim +487 -0
- data/.samples/vim/colors/gradable.vim +487 -0
- data/.samples/vim/colors/harbinger.vim +487 -0
- data/.samples/vim/colors/kashima.vim +487 -0
- data/{sample-output/chalazal.vim → .samples/vim/colors/knockdown.vim} +379 -369
- data/.samples/vim/colors/manful.vim +487 -0
- data/.samples/vim/colors/maximal.vim +487 -0
- data/{sample-output/canister.vim → .samples/vim/colors/periclase.vim} +375 -365
- data/.samples/vim/colors/poesis.vim +487 -0
- data/.samples/vim/colors/proton.vim +487 -0
- data/{sample-output/hello_hello.vim → .samples/vim/colors/recedence.vim} +370 -360
- data/.samples/vim/colors/scram.vim +487 -0
- data/.samples/vim/colors/server.vim +487 -0
- data/{sample-output/singsong.vim → .samples/vim/colors/shrubbish.vim} +379 -369
- data/{sample-output/upbind.vim → .samples/vim/colors/sultam.vim} +355 -345
- data/.samples/vim/colors/virtuoso.vim +487 -0
- data/.samples/vim/colors/wherrit.vim +487 -0
- data/{sample-output/unflorid.vim → .samples/vim/colors/winsome.vim} +366 -356
- data/.samples/vim/colors/wirelike.vim +487 -0
- data/.samples/vim/syntax/actionscript.vim +173 -0
- data/.samples/vim/syntax/erlang.vim +151 -0
- data/.samples/vim/syntax/haxe.vim +427 -0
- data/Rakefile +195 -0
- data/TODO.md +17 -0
- data/VERSION +1 -1
- data/autocolors.gemspec +44 -20
- data/bin/autocolors +4 -0
- data/lib/VERSION +1 -1
- data/lib/autocolors/colorscheme.rb +19 -16
- data/lib/autocolors/mapping.udon +17 -16
- data/quicktest.html +70745 -0
- metadata +135 -159
@@ -0,0 +1,173 @@
|
|
1
|
+
" Vim syntax file
|
2
|
+
" Language: actionScript
|
3
|
+
" Maintainer: Igor Dvorsky <amigo@modesite.net>
|
4
|
+
" URL: http://www.modesite.net/vim/actionscript.vim
|
5
|
+
" Last Change: 2002 Sep 12
|
6
|
+
" Updated to support AS 2.0 2004 March 12 by Richard Leider (richard@appliedrhetoric.com)
|
7
|
+
" Updated to support new AS 2.0 Flash 8 Language Elements 2005 September 29 (richard@appliedrhetoric.com)
|
8
|
+
" Updated to support AS 3.0 Language Elements 2009 March 03 (richard@appliedrhetoric.com)
|
9
|
+
|
10
|
+
|
11
|
+
" For version 5.x: Clear all syntax items
|
12
|
+
" For version 6.x: Quit when a syntax file was already loaded
|
13
|
+
if !exists("main_syntax")
|
14
|
+
if version < 600
|
15
|
+
syntax clear
|
16
|
+
elseif exists("b:current_syntax")
|
17
|
+
finish
|
18
|
+
endif
|
19
|
+
let main_syntax = 'actionscript'
|
20
|
+
endif
|
21
|
+
|
22
|
+
" based on "JavaScript" VIM syntax by Claudio Fleiner <claudio@fleiner.com>
|
23
|
+
|
24
|
+
syn case ignore
|
25
|
+
syn match actionScriptLineComment "\/\/.*$"
|
26
|
+
syn match actionScriptCommentSkip "^[ \t]*\*\($\|[ \t]\+\)"
|
27
|
+
syn region actionScriptCommentString start=+"+ skip=+\\\\\|\\"+ end=+"+ end=+\*/+me=s-1,he=s-1 contains=actionScriptSpecial,actionScriptCommentSkip,@htmlPreproc
|
28
|
+
syn region actionScriptComment2String start=+"+ skip=+\\\\\|\\"+ end=+$\|"+ contains=actionScriptSpecial,@htmlPreproc
|
29
|
+
syn region actionScriptComment start="/\*" end="\*/" contains=actionScriptCommentString,actionScriptCharacter,actionScriptNumber
|
30
|
+
syn match actionScriptSpecial "\\\d\d\d\|\\."
|
31
|
+
syn region actionScriptStringD start=+"+ skip=+\\\\\|\\"+ end=+"+ contains=actionScriptSpecial,@htmlPreproc
|
32
|
+
syn region actionScriptStringS start=+'+ skip=+\\\\\|\\'+ end=+'+ contains=actionScriptSpecial,@htmlPreproc
|
33
|
+
syn match actionScriptSpecialCharacter "'\\.'"
|
34
|
+
syn match actionScriptNumber "-\=\<\d\+L\=\>\|0[xX][0-9a-fA-F]\+\>"
|
35
|
+
syn keyword actionScriptConditional if else and or not
|
36
|
+
syn keyword actionScriptRepeat do while for in
|
37
|
+
syn keyword actionScriptCase break continue switch case default
|
38
|
+
syn keyword actionScriptConstructor new
|
39
|
+
syn keyword actionScriptObjects arguments Array Boolean Date _global Math Number Object String super var this Accessibility Color Key _level Mouse _root Selection Sound Stage System TextFormat LoadVars XML XMLSocket XMLNode LoadVars Button TextField TextSnapshot CustomActions Error ContextMenu ContextMenuItem NetConnection NetStream Video PrintJob MovieClipLoader StyleSheet Camera LocalConnection Microphone SharedObject MovieClip
|
40
|
+
syn keyword actionScriptStatement return with
|
41
|
+
syn keyword actionScriptFunction function on onClipEvent
|
42
|
+
syn keyword actionScriptValue true false undefined null NaN void
|
43
|
+
syn keyword actionScriptArray concat join length pop push reverse shift slice sort sortOn splice toString unshift
|
44
|
+
syn keyword actionScriptDate getDate getDay getFullYear getHours getMilliseconds getMinutes getMonth getSeconds getTime getTimezoneOffset getUTCDate getUTCDay getUTCFullYear getUTCHours getUTCMilliseconds getUTCMinutes getUTCMonth getUTCSeconds getYear setDate setFullYear setHours setMilliseconds setMinutes setMonth setSeconds setTime setUTCDate setUTCFullYear setUTCHours setUTCMilliseconds setUTCMinutes setUTCMonth setUTCSeconds setYear UTC
|
45
|
+
syn keyword actionScriptMath abs acos asin atan atan2 ceil cos E exp floor log LOG2E LOG10E LN2 LN10 max min PI pow random round sin sqrt SQRT1_2 SQRT2 tan -Infinity Infinity
|
46
|
+
syn keyword actionScriptNumberObj MAX_VALUE MIN_VALUE NaN NEGATIVE_INFINITY POSITIVE_INFINITY valueOf
|
47
|
+
syn keyword actionScriptObject addProperty __proto__ registerClass toString unwatch valueOf watch
|
48
|
+
syn keyword actionScriptString charAt charCodeAt concat fromCharCode indexOf lastIndexOf length slice split substr substring toLowerCase toUpperCase add le lt gt ge eq ne chr mbchr mblength mbord mbsubstring ord
|
49
|
+
syn keyword actionScriptColor getRGB getTransform setRGB setTransform
|
50
|
+
syn keyword actionScriptKey addListener BACKSPACE CAPSLOCK CONTROL DELETEKEY DOWN END ENTER ESCAPE getAscii getCode HOME INSERT isDown isToggled LEFT onKeyDown onKeyUp PGDN PGUP removeListener RIGHT SHIFT SPACE TAB UP ALT
|
51
|
+
syn keyword actionScriptMouse hide onMouseDown onMouseUp onMouseMove show onMouseWheel
|
52
|
+
syn keyword actionScriptSelection getBeginIndex getCaretIndex getEndIndex getFocus setFocus setSelection
|
53
|
+
syn keyword actionScriptSound attachSound duration getBytesLoaded getBytesTotal getPan getTransform getVolume loadSound onLoad onSoundComplete position setPan setTransform setVolume start stop onID3
|
54
|
+
syn keyword actionScriptStage align height onResize scaleMode width
|
55
|
+
syn keyword actionScriptSystem capabilities hasAudioEncoder hasAccessibility hasAudio hasMP3 language manufacturer os pixelAspectRatio screenColor screenDPI screenResolution.x screenResolution.y version hasVideoEncoder security useCodepage exactSettings hasEmbeddedVideo screenResolutionX screenResolutionY input isDebugger serverString hasPrinting playertype hasStreamingAudio hasScreenBroadcast hasScreenPlayback hasStreamingVideo avHardwareDisable localFileReadDisable windowlesDisable active update description forceSimple noAutoLabeling shortcut silent
|
56
|
+
syn keyword actionScriptTextFormat align blockIndent bold bullet color font getTextExtent indent italic leading leftMargin rightMargin size tabStops target underline url
|
57
|
+
syn keyword actionScriptCommunication contentType getBytesLoaded getBytesTotal load loaded onLoad send sendAndLoad toString addRequestHeader fscommand MMExecute
|
58
|
+
syn keyword actionScriptXMLSocket close connect onClose onConnect onData onXML
|
59
|
+
syn keyword actionScriptTextField autoSize background backgroundColor border borderColor bottomScroll embedFonts _focusrect getDepth getFontList getNewTextFormat getTextFormat hscroll html htmlText maxChars maxhscroll maxscroll multiline onChanged onScroller onSetFocus _parent password _quality removeTextField replaceSel replaceText restrict selectable setNewTextFormat setTextFormat text textColor textHeight textWidth type variable wordWrap condenseWhite mouseWheelEnabled textFieldHeight textFieldWidth ascent descent
|
60
|
+
syn keyword actionScriptMethods callee caller _alpha attachMovie beginFill beginGradientFill clear createEmptyMovieClip createTextField _currentframe curveTo _droptarget duplicateMovieClip enabled endFill focusEnabled _framesloaded getBounds globalToLocal gotoAndPlay gotoAndStop _height _highquality hitArea hitTest lineStyle lineTo loadMovie loadMovieNum loadVariables loadVariablesNum localToGlobal moveTo _name nextFrame onDragOut onDragOver onEnterFrame onKeyDown onKeyUp onKillFocus onMouseDown onMouseMove onMouseUp onPress onRelease onReleaseOutside onRollOut onRollOver onUnload play prevFrame removeMovieClip _rotation setMask _soundbuftime startDrag stopDrag swapDepths tabChildren tabIndex _target _totalframes trackAsMenu unloadMovie unloadMovieNum updateAfterEvent _url useHandCursor _visible _width _x _xmouse _xscale _y _ymouse _yscale tabEnabled asfunction call setInterval clearInterval setProperty stopAllSounds #initclip #endinitclip delete unescape escape eval apply prototype getProperty getTimer getURL getVersion ifFrameLoaded #include instanceof int new nextScene parseFloat parseInt prevScene print printAsBitmap printAsBitmapNum printNum scroll set targetPath tellTarget toggleHighQuality trace typeof isActive getInstanceAtDepth getNextHighestDepth getNextDepth getSWFVersion getTextSnapshot isFinite isNAN updateProperties _lockroot get install list uninstall showMenu onSelect builtInItems save zoom quality loop rewind forward_back customItems caption separatorBefore visible attachVideo bufferLength bufferTime currentFps onStatus pause seek setBuffertime smoothing time bytesLoaded bytesTotal addPage paperWidth paperHeight pageWidth pageHeight orientation loadClip unloadClip getProgress onLoadStart onLoadProgress onLoadComplete onLoadInit onLoadError styleSheet copy hideBuiltInItem transform activityLevel allowDomain allowInsecureDomain attachAudio bandwidth deblocking domain flush fps gain getLocal getRemote getSize index isConnected keyFrameInterval liveDelay loopback motionLevel motionTimeOut menu muted names onActivity onSync publish rate receiveAudio receiveVideo setFps setGain setKeyFrameInterval setLoopback setMode setMotionLevel setQuality setRate setSilenceLevel setUseEchoSuppression showSettings setClipboard silenceLevel silenceTimeOut useEchoSuppression
|
61
|
+
syn match actionScriptBraces "([{}])"
|
62
|
+
syn keyword actionScriptException try catch finally throw name message
|
63
|
+
syn keyword actionScriptXML attributes childNodes cloneNode createElement createTextNode docTypeDecl status firstChild hasChildNodes lastChild insertBefore nextSibling nodeName nodeType nodeValue parentNode parseXML previousSibling removeNode xmlDecl ignoreWhite
|
64
|
+
syn keyword actionScriptArrayConstant CASEINSENSITIVE DESCENDING UNIQUESORT RETURNINDEXEDARRAY NUMERIC
|
65
|
+
syn keyword actionScriptStringConstant newline
|
66
|
+
syn keyword actionScriptEventConstant press release releaseOutside rollOver rollOut dragOver dragOut enterFrame unload mouseMove mouseDown mouseUp keyDown keyUp data
|
67
|
+
syn keyword actionScriptTextSnapshot getCount setSelected getSelected getText getSelectedText hitTestTextNearPos findText setSelectColor
|
68
|
+
syn keyword actionScriptID3 id3 artist album songtitle year genre track comment COMM TALB TBPM TCOM TCON TCOP TDAT TDLY TENC TEXT TFLT TIME TIT1 TIT2 TIT3 TKEY TLAN TLEN TMED TOAL TOFN TOLY TOPE TORY TOWN TPE1 TPE2 TPE3 TPE4 TPOS TPUB TRCK TRDA TRSN TRSO TSIZ TSRX TSSE TYER WXXX
|
69
|
+
syn keyword actionScriptAS2 class extends public private static interface implements import dynamic evaluate package const include use protected native internal override final
|
70
|
+
syn keyword actionScriptStyleSheet parse parseCSS getStyle setStyle getStyleNames
|
71
|
+
syn keyword flash8Functions onMetaData onCuePoint flashdisplay flashexternal flashfilters flashgeom flashnet flashtext addCallback applyFilter browse cancel clone colorTransform containsPoint containsRectangle copyChannel copyPixels createBox createGradientBox deltaTransformPoint dispose download draw equals fillRect floodFill generateFilterRect getColorBoundsRect getPixel getPixel32 identity inflate inflatePoint interpolate intersection intersects invert isEmpty loadBitmap merge noise normalize offsetPoint paletteMap perlinNoise pixelDissolve polar rotate scale setAdvancedAntialiasingTable setEmpty setPixel setPixel32 subtract threshold transformPoint translate union upload
|
72
|
+
syn keyword flash8Constants ALPHANUMERIC_FULL ALPHANUMERIC_HALF CHINESE JAPANESE_HIRAGANA JAPANESE_KATAKANA_FULL JAPANESE_KATAKANA_HALF KOREAN UNKNOWN
|
73
|
+
syn keyword flash8Properties appendChild cacheAsBitmap opaqueBackground scrollRect keyPress #initclip #endinitclip kerning letterSpacing onHTTPStatus lineGradientStyle IME windowlessDisable hasIME hideBuiltInItems onIMEComposition getEnabled setEnabled getConversionMode setConversionMode setCompositionString doConversion idMap antiAliasType available bottom bottomRight concatenatedColorTransform concatenatedMatrix creationDate creator fileList maxLevel modificationDate pixelBounds rectangle rgb top topLeft attachBitmap beginBitmapFill blendMode filters getRect scale9Grid gridFitType sharpness thickness
|
74
|
+
syn keyword flash8Classes BevelFilter BitmapData BitmapFilter BlurFilter ColorMatrixFilter ColorTransform ConvolutionFilter DisplacementMapFilter DropShadowFilter ExternalInterface FileReference FileReferenceList GlowFilter GradientBevelFilter GradientGlowFilter Matrix Point Rectangle TextRenderer StageAlign
|
75
|
+
|
76
|
+
syn keyword as3Properties compare pixelSnapping loaderInfo mask mouseX mouseY parent root rotation scaleX scaleY x y mouseChildren numChildren fontName fontStyle enumerate hasGlyphs frame accessibilityImplementation focusRect mouseEnabled content loadeeInfo actionScriptVersion applicationDomain frameRate loaderURL parameters securityRelationshipFlags shared swfVersion currentFrame currentLabel currentScene framesLoaded scenes totalFrames labels numFrames downState hitTestState overState soundTransform upState buttonMode dropTarget focus showDefaultContextMenu stageFocusRect stageHeight stageWidth alwaysShowSelection bottomScrollV caretIndex defaultTextFormat fontList maxScrollH maxScrollV numLines scrollH scrollV selectionBeginIndex selectionEndIndex activity mouseTarget contextMenuOwner fullYear month hours minutes seconds milliseconds fullYearUTC monthUTC dateUTC hoursUTC minutesUTC secondsUTC millisecondsUTC timezoneOffset day dayUTC errorID prefix uri localName ignoreProcessingInstructions ignoreWhitespace ignoreWhitespace ignoreWhitespace hasComplexContent hasSimpleContent inScopeNamespaces namespaceDeclarations nodeKind processingInstructions setChildren setLocalName setName setNamespace setSettings toXMLString ignoreComments attribute child childIndex children comments descendants defaultSettings elements prettyPrinting prettyIndent settings actionsList horizontalScrollPolicy verticalScrollPolicy horizontalLineScrollSize verticalLineScrollSize horizontalScrollPosition verticalScrollPosition maxHorizontalScrollPosition maxVerticalScrollPosition useBitmapScrolling horizontalPageScrollSize verticalPageScrollSize horizontalScrollBar verticalScrollBar percentLoaded autoLoad scaleContent maintainAspectRatio selected autoRepeat emphasized autoRepeat selectedColor hexValue editable showTextField colors imeMode rowCount selectedIndex labelField labelFunction selectedItem dropdown value dataProvider dropdownWidth prompt sortableColumns itemEditorInstance columns minColumnWidth rowHeight headerHeight showHeaders sortIndex sortDescending editedItemRenderer editedItemPosition label labelPlacement maximum minimum nextValue previousValue stepSize direction indeterminate percentComplete mode groupName group selectedData numRadioButtons scrollPosition minScrollPosition minScrollPosition maxScrollPosition pageSize pageScrollSize pageScrollSize direction allowMultipleSelection selectedIndices selectedItems lineScrollSize tickInterval snapInterval liveDragging displayAsPassword sourceField sourceFunction columnCount columnWidth innerWidth innerHeight scrollTarget listData sortable resizable itemEditor editorDataField dataField dataField cellRenderer headerRenderer headerText minWidth sortCompareFunction column FieldlineScrollSize sortOptions icon owner row mouseFocusEnabled focusManager itemRenderer reason rowIndex columnIndex item delta keyCode triggerEvent clickTarget autoReplace languageCodeArray stringIDArray onUpdate myInstance defaultButton defaultButtonEnabled nextTabIndex showFocusIndicator defaultButton defaultButtonEnabled nextTabIndex showFocusIndicator registerInstance getComponentStyle clearComponentStyle setComponentStyle fromXMLString getValue getSingleValue getYForX getCubicCoefficients getCubicRoots getQuadraticRoots fromXML interpolateTransform interpolateColor setTint getValue easingFunction functionName setValue getTween getScaleX setScaleX getScaleY setScaleY getSkewXRadians setSkewXRadians getSkewYRadians setSkewYRadians getSkewX setSkewX getSkewY getSkewY setSkewY getRotationRadians setRotationRadians getRotation setRotation rotateAroundInternalPoint rotateAroundExternalPoint matchInternalPointWithExternal getCurrentKeyframe getNextKeyframe setValue getColorTransform getFilters addKeyframe interpolateFilters interpolateFilter easeIn easeOut easeInOut easeNone transformationPoint autoRewind positionMatrix repeatCount motion isPlaying orientToPath points a b c d brightness tintColor tintMultiplier points affectsTweenable skewX skewY tweens easeQuadPercent tweenScale tweenSnap tweenSync firstFrame rotateDirection rotateTimes blank keyframes keyframesCompact easeNone ease elementType symbolName instanceName linkageID dimensions resume contentAppearance obj prop func begin useSeconds looping finish vp captionCuePointObject captionTarget playWhenEnoughDownloaded seekSeconds seekPercent playheadPercentage preview activeVideoPlayerIndex autoPlay bitrate bufferingBar bufferingBarHidesAndDisablesOthers backButton cuePoints forwardButton fullScreenBackgroundColor fullScreenButton fullScreenSkinDelay fullScreenTakeOver idleTimeout isRTMP isLive metadata metadataLoaded muteButton ncMgr pauseButton playButton playheadTime playheadUpdateInterval playPauseButton preferredHeight preferredWidth progressInterval registrationX registrationY registrationWidth registrationHeight scrubbing seekBar seekBarInterval seekBarScrubTolerance seekToPrevOffset skin skinAutoHide skinBackgroundAlpha skinBackgroundColor skinFadeTime skinScaleMaximum stateResponsive stopButton totalTime visibleVideoPlayerIndex volume volumeBar volumeBarIntervalvolumeBarScrubTolerance showCaptions autoLayout captionTargetName captionButton flvPlaybackName videoPlayerIndex simpleFormatting helperDone videoPlayer timeout streamName streamLength streamWidth volumeBarInterval volumeBarScrubTolerance streamHeight oldBounds oldRegistrationBounds info fallbackServerName code ncConnected ncReconnected iNCManagerClass netStreamClientClass lock unlock rect accessibilityProperties doubleClickEnabled contentLoaderInfo sharedEvents sameDomain childAllowsParent parentAllowsChild bytes currentLabels displayState fullScreenSourceRect fullScreenWidth fullScreenHeight activating isDefaultPrevented bubbles volumeBarInterval videoHeight cancelable currentTarget relatedObject shiftKey charCode keyLocation ctrlKey altKey localX localY buttonDown stageX stageY level changeList objectID distance angle highlightColor highlightAlpha shadowColor shadowAlpha blurX blurY knockout strength matrixX matrixY divisor bias preserveAlpha mapBitmap mapPoint componentX componentY hideObject alphas ratios redMultiplier greenMultiplier blueMultiplier alphaMultiplier redOffset greenOffset blueOffset alphaOffset tx ty offset songName leftPeak rightPeak videoWidth extension macType client connected client defaultObjectEncoding objectEncoding proxyType connectedProxyType usingTLS bytesAvailable endian dataFormat method requestHeaders hasTLS conversionMode securityDomain currentDomain totalMemory fontSize insideCutoff outsideCutoff sandboxType styleNames useRichTextClipboard displayMode charCount forwardAndBack isAccessible numLock nextNameIndex nextName delay currentCount running namespaceURI
|
77
|
+
|
78
|
+
syn keyword as3Classes Bitmap BitmapDataChannel CapsStyle DisplayObject DisplayObjectContainer FrameLabel GradientType Graphics InteractiveObject InterpolationMethod JointStyle LineScaleMode Loader MorphShape Scene Shape SimpleButton SpreadMethod Sprite StageQuality StageScaleMode StaticText TextFieldAutoSize TextFieldType ActivityEvent ContextMenuEvent RegExp Namespace uint XMLList constructor QName XMLUI AccImpl ButtonAccImpl CheckBoxAccImpl ComboBoxAccImpl DataGridAccImpl LabelButtonAccImpl ListAccImpl RadioButtonAccImpl SelectableListAccImpl TileListAccImpl UIComponentAccImpl BaseScrollPane ScrollPane UILoader BaseButton ButtonLabelPlacement CheckBox ColorPicker ComboBox DataGrid Label LabelButton NumericStepper ProgressBar ProgressBarDirection ProgressBarMode RadioButton RadioButtonGroup ScrollBar ScrollBarDirection ScrollPolicy SelectableList Slider SliderDirection TextArea TextInput TileList UIScrollBar DataGridCellEditor DataGridColumn HeaderRenderer CellRenderer ICellRenderer ImageCell TileListData IndeterminateBar DataChangeType InvalidationType UIComponent SimpleCollectionItem DataGridEventReason TileListCollectionItem InteractionInputType SliderEventClickTarget Locale LivePreviewParent IFocusManager IFocusManagerComponent IFocusManagerGroup StyleManager Animator MotionEvent BezierEase BezierSegment CustomEase FunctionEase ITween Keyframe MatrixTransformer FLVPlayback FLVPlaybackCaptioning NCManager VideoScaleMode VideoState SimpleEase Tweenables Back Bounce Circular Cubic Elastic Exponential Quadratic Quartic Quintic Sine Blinds Fade Fly Iris Photo Squeeze Transition TransitionManager Tween Wipe Strong CuePointType INCManager NCManagerNative VideoAlign AccessibilityProperties AVM1Movie IBitmapDrawable StageDisplayState LoaderInfo EventDispatcher EventPhase IEventDispatcher BitmapFilterQuality BitmapFilterType DisplacementMapFilterMode ID3Info SoundChannel SoundLoaderContext SoundMixer FileFilter IDynamicPropertyOutput IDynamicPropertyWriter ObjectEncoding Responder SharedObjectFlushStatus DoynamicPropertyWriter Socket URLLoader URLLoaderDataFormat URLRequest URLRequestHeader URLRequestMethod URLStream URLVariables PrintJobOptions PrintJobOrientation IMEConversionMode LoaderContext SecurityDomain SecurityPanel CSMSettings FontType TextColorType TextDisplayMode TextFormatAlign TextLineMetrics ContextMenuBuiltInItems ByteArray Dictionary IDataInput IDataOutput IExternalizable Proxy XMLDocument XMLNodeType
|
79
|
+
syn keyword as3Packages flash display errors events fl mx utils adobe containers controls dataGridClasses listClasses progressBarClasses core lang livepreview managers motion easing transitions external geom media net printing profiler ui
|
80
|
+
syn keyword as3Functions getPixels setPixels hitTestObject hitTestPoint addChild addChildAtareInaccessibleObjectsUnderPoint getChildAt getChildByName getChildIndex getObjectsUnderPoint removeChild removeChildAt setChildIndex addChildAt areInaccessibleObjectsUnderPoint drawCircle drawEllipse drawRect drawRoundRect drawRoundRectComplex releaseCapture setCapture loadBytes invalidate isFocusInaccessible appendText getCharBoundaries getCharIndexAtPoint getFirstCharInParagraph getImageReference getLineIndexAtPoint getLineIndexOfChar getLineLength getLineMetrics getLineOffset getLineText getParagraphLength replaceSelectedText every filter forEach map some toLocaleString toDateString toTimeString toLocaleString toLocaleDateString toLocaleTimeString toUTCString getStackTrace toFixed toExponential toPrecision decodeURI decodeURIComponent encodeURI encodeURIComponent isXMLName hasOwnProperty propertyIsEnumerable isPrototypeOf setPropertyIsEnumerable exec test dotall extended global ignoreCase lastIndex source localeCompare replace match search toLocaleLowerCase toLocaleUpperCase addNamespace insertChildAfter insertChildBefore prependChild removeNamespace installActions uninstallActions getActions accept enableAccessibility getStyleDefinition refreshPane scrollDrag setSize setMouseState drawFocus toggle itemToLabel addItem addItemAt removeAll removeItem removeItemAt getItemAt replaceItemAt sortItems sortItemsOn addColumnAt removeColumnAt removeAllColumns getColumnAt getColumnIndex getColumnCount spaceColumnsEqually editField itemToCellRenderer createItemEditor destroyItemEditor getCellRendererAt scrollToIndex resizableColumns addColumn iconField iconFunction setProgress reset getGroup addRadioButton removeRadioButton getRadioButtonIndex getRadioButtonAt setScrollProperties clearSelection invalidateList invalidateItem invalidateItemAt isItemSelected scrollToSelected scrollToSelected setRendererStyle getRendererStyle clearRendererStyle getNextIndexAtLetter mergeStyles clearStyle move validateNow drawNow addItemsAt addItems getItemIndex replaceItem toArray getDefaultLang setDefaultLang addXMLPath addDelayedInstance checkXMLStatus setLoadCallback loadString loadStringEx setString initialize loadLanguageXML getNextFocusManagerComponent showFocus hideFocus findFocusManagerComponent showFocus hideFocus findFocusManagerComponent getNextFocusManagerComponent startTransition continueTo yoyo fforward setScale seekToNavCuePoint seekToNextNavCuePoint seekToPrevNavCuePoint addASCuePoint removeASCuePoint findCuePoint findNearestCuePoint findNearestCuePoint setFLVCuePointEnabled isFLVCuePointEnabled bringVideoPlayerToFront getVideoPlayer closeVideoPlayer enterFullScreenDisplayState findNextCuePointWithName connectToURL connectAgain reconnect swapChildrenAt swapChildren getLoaderInfoByDefinition addEventListener dispatchEvent hasEventListener willTrigger swapChildrenAt formatToString stopPropagation stopImmediatePropagation preventDefault removeEventListener marshallExceptions getCamera getMicrophone containsRect isBuffering checkPolicyFile stopAll computeSpectrum areSoundsInaccessible leftToLeft leftToRight rightToRight rightToLeft pan attachNetStream attachCamera writeDynamicProperty writeDynamicProperties addHeader togglePause registerClassAlias getClassByAlias navigateToURL sendToURL setDirty readBytes writeBytes writeBoolean writeByte writeShort writeInt writeUnsignedInt writeFloat writeDouble writeMultiByte writeUTF writeUTFBytes readBoolean readByte readUnsignedByte readShort readUnsignedShort readInt readUnsignedInt readFloat readDouble readMultiByte readUTF readUTFBytes writeObject readObject decode showRedrawRegions getDefinition hasDefinition currentDomain parentDomain loadPolicyFile exit gc enumerateFonts registerFont getTextRunInfo compress uncompress writeExternal readExternal describeType getQualifiedClassName getDefinitionByName getQualifiedSuperclassName escapeMultiByte unescapeMultiByte setTimeout clearTimeout callProperty hasProperty deleteProperty getDescendants isAttribute getNamespaceForPrefix getPrefixForNamespace
|
81
|
+
|
82
|
+
syn keyword as3Constants ALPHA BLUE GREEN RED DARKEN DIFFERENCE ERASE HARDLIGHT LAYER LIGHTEN MULTIPLY NORMAL OVERLAY SCREEN NONE SQUARE LINEAR RADIAL LINEAR_RGB BEVEL MITER HORIZONTAL VERTICAL LOADER_SECURITY_CHILD_ALLOWS_PARENT LOADER_SECURITY_PARENT_ALLOWS_CHILD LOADER_SECURITY_SAME_DOMAIN ALWAYS AUTO NEVER PAD REFLECT REPEAT BOTTOM_LEFT BOTTOM_RIGHT TOP_LEFT TOP_RIGHT BEST HIGH LOW MEDIUM EXACT_FIT NO_BORDER NO_SCALE SHOW_ALL CENTER MENU_ITEM_SELECT MENU_SELECT ACTIVATE ADDED CHANGE COMPLETE DEACTIVATE ENTER_FRAME INIT MOUSE_LEAVE OPEN REMOVED RENDER RESIZE SELECT SOUND_COMPLETE TAB_CHILDREN_CHANGE TAB_ENABLED_CHANGE TAB_INDEX_CHANGE TIMER_COMPLETE AT_TARGET BUBBLING_PHASE CAPTURING_PHASE FOCUS_IN FOCUS_OUT KEY_FOCUS_CHANGE MOUSE_FOCUS_CHANGE HTTP_STATUS IME_COMPOSITION IO_ERROR KEY_DOWN KEY_UP CLICK DOUBLE_CLICK MOUSE_DOWN MOUSE_MOVE MOUSE_OUT MOUSE_OVER MOUSE_UP MOUSE_WHEEL ROLL_OUT ROLL_OVER NET_STATUS POLICY_FILE PROGRESS SOCKET_DATA SECURITY_ERROR SYNC LINK TEXT_INPUT TIMER FULL INNER OUTER CLAMP IGNORE WRAP BINARY VARIABLES AMF0 AMF3 POST LANDSCAPE PORTRAIT LOCAL_STORAGE PRIVACY SETTINGS_MANAGER ADVANCED GLOBAL_ADVANCED_ANTIALIASING_OFF GLOBAL_ADVANCED_ANTIALIASING_ON GLOBAL_ADVANCED_ANTIALIASING_TEXTFIELD_CONTROL DARK_COLOR LIGHT_COLOR BOLD_ITALIC PIXEL SUBPIXEL JUSTIFY CAPS_LOCK F1 F10 F11 F12 F13 F14 F15 F2 F3 F4 F5 F6 F7 F8 F9 NUMPAD_0 NUMPAD_1 NUMPAD_2 NUMPAD_3 NUMPAD_4 NUMPAD_5 NUMPAD_6 NUMPAD_7 NUMPAD_8 NUMPAD_9 NUMPAD_ADD NUMPAD_DECIMAL NUMPAD_DIVIDE NUMPAD_ENTER NUMPAD_MULTIPLY NUMPAD_SUBTRACT PAGE_DOWN PAGE_UP NUM_PAD STANDARD BIG_ENDIAN LITTLE_ENDIAN ELEMENT_NODE TEXT_NODE BUTTON_DOWN ITEM_ROLL_OUT ITEM_ROLL_OVER ITEM_FOCUS_OUT ITEM_FOCUS_IN ITEM_EDIT_END ITEM_EDIT_BEGIN ITEM_EDIT_BEGINNING COLUMN_STRETCH HEADER_RELEASE LABEL_CHANGE MANUAL POLLED OFF ITEM_DOUBLE_CLICK ITEM_CLICK THUMB_DRAG THUMB_RELEASE THUMB_PRESS ALL STYLES RENDERER_STYLES STATE DATA_CHANGE PRE_DATA_CHANGE MOVE DATA_CHANGE PRE_DATA_CHANGE INVALIDATE_ALL REMOVE REMOVE_ALL CANCELLED OTHER NEW_COLUMN NEW_ROW KEYBOARD THUMB TIME_CHANGE MOTION_UPDATE MOTION_START MOTION_END CW CCW SCALE_X SCALE_Y SKEW_X SKEW_Y CIRCLE OUT MOTION_STOP MOTION_START MOTION_RESUME MOTION_LOOP MOTION_FINISH MOTION_CHANGE AUTO_LAYOUT CAPTION_CHANGE CAPTION_TARGET_CREATED NAVIGATION FLV ACTIONSCRIPT SHORT_VERSION SOUND_UPDATE STOPPED_STATE_ENTERED STATE_CHANGE SKIN_LOADED SKIN_ERROR SEEKED SCRUB_START SCRUB_FINISH LAYOUT READY PLAYHEAD_UPDATE PLAYING_STATE_ENTERED PAUSED_STATE_ENTERED METADATA_RECEIVED FAST_FORWARD CUE_POINT BUFFERING_STATE_ENTERED AUTO_REWOUND AUTO_LAYOUT SHORT_VERSION CAPTION_TARGET_CREATED CAPTION_CHANGE LAYOUT METADATA_RECEIVED CUE_POINT VERSION SHORT_VERSION DEFAULT_TIMEOUT NO_CONNECTION ILLEGAL_CUE_POINT INVALID_SEEK INVALID_SOURCE INVALID_XML NO_BITRATE_MATCH DELETE_DEFAULT_PLAYER INCMANAGER_CLASS_UNSET NULL_URL_LOAD MISSING_SKIN_STYLE UNSUPPORTED_PROPERTY NETSTREAM_CLIENT_CLASS_UNSET MAINTAIN_ASPECT_RATIO NO_SCALE EXACT_FIT DISCONNECTED STOPPED PLAYING PAUSED BUFFERING LOADING CONNECTION_ERROR REWINDING SEEKING RESIZING ACTIONSCRIPT2 ACTIONSCRIPT3 REMOVED_FROM_STAGE ADDED_TO_STAGE FULL_SCREEN NORMAL FLASH1 FLASH2 FLASH3 FLASH4 FLASH5 FLASH6 FLASH7 FLASH8 FLASH9 FLASH10 ASYNC_ERROR UPLOAD_COMPLETE_DATA FULLSCREEN FLUSHED PENDING REMOTE LOCAL_WITH_FILE LOCAL_WITH_NETWORK LOCAL_TRUSTED REGULAR EMBEDDED DEVICE LCD CRT
|
83
|
+
syn keyword actionScriptInclude #include #initClip #endInitClip
|
84
|
+
syn keyword as3Errors EOFError IllegalOperationError IOError MemoryError ScriptTimeoutError StackOverflowError ArgumentError DefinitionError EvalError RangeError ReferenceError SecurityError SyntaxError TypeError URIError VerifyError VideoError InvalidSWFError
|
85
|
+
syn keyword as3Events DataEvent ErrorEvent Event ScrollEvent ProgressEvent SecurityErrorEvent ComponentEvent ProgressEvent IOErrorEvent ComponentEvent ColorPickerEvent ListEvent MouseEvent TextEvent DataChangeEvent HTTPStatusEvent IMEEvent TimerEvent TweenEvent AutoLayoutEvent CaptionChangeEvent CaptionTargetEvent SoundEvent VideoEvent SkinErrorEvent LayoutEvent VideoProgressEvent MetadataEvent IVPEvent KeyboardEvent FocusEvent FullScreenEvent AsyncErrorEvent FocusEvent KeyboardEvent NetStatusEvent StatusEvent SyncEvent DataGridEvent SliderEvent
|
86
|
+
|
87
|
+
" catch errors caused by wrong parenthesis
|
88
|
+
syn match actionScriptInParen contained "[{}]"
|
89
|
+
syn region actionScriptParen transparent start="(" end=")" contains=actionScriptParen,actionScript.*
|
90
|
+
syn match actionScrParenError ")"
|
91
|
+
|
92
|
+
if main_syntax == "actionscript"
|
93
|
+
syn sync ccomment actionScriptComment
|
94
|
+
endif
|
95
|
+
|
96
|
+
" Define the default highlighting.
|
97
|
+
" For version 5.7 and earlier: only when not done already
|
98
|
+
" For version 5.8 and later: only when an item doesn't have highlighting yet
|
99
|
+
if version >= 508 || !exists("did_actionscript_syn_inits")
|
100
|
+
if version < 508
|
101
|
+
let did_actionscript_syn_inits = 1
|
102
|
+
command -nargs=+ HiLink hi link <args>
|
103
|
+
else
|
104
|
+
command -nargs=+ HiLink hi def link <args>
|
105
|
+
endif
|
106
|
+
HiLink actionScriptComment Comment
|
107
|
+
HiLink actionScriptLineComment Comment
|
108
|
+
HiLink actionScriptSpecial Special
|
109
|
+
HiLink actionScriptStringS String
|
110
|
+
HiLink actionScriptStringD String
|
111
|
+
HiLink actionScriptCharacter Character
|
112
|
+
HiLink actionScriptSpecialCharacter actionScriptSpecial
|
113
|
+
HiLink actionScriptNumber actionScriptValue
|
114
|
+
HiLink actionScriptBraces Function
|
115
|
+
HiLink actionScriptError Error
|
116
|
+
HiLink actionScrParenError actionScriptError
|
117
|
+
HiLink actionScriptInParen actionScriptError
|
118
|
+
HiLink actionScriptConditional Conditional
|
119
|
+
HiLink actionScriptRepeat Repeat
|
120
|
+
HiLink actionScriptCase Label
|
121
|
+
HiLink actionScriptConstructor Operator
|
122
|
+
HiLink actionScriptObjects Operator
|
123
|
+
HiLink actionScriptStatement Statement
|
124
|
+
HiLink actionScriptFunction Function
|
125
|
+
HiLink actionScriptValue Boolean
|
126
|
+
HiLink actionScriptArray Type
|
127
|
+
HiLink actionScriptDate Type
|
128
|
+
HiLink actionScriptMath Type
|
129
|
+
HiLink actionScriptNumberObj Type
|
130
|
+
HiLink actionScriptObject Function
|
131
|
+
HiLink actionScriptString Type
|
132
|
+
HiLink actionScriptColor Type
|
133
|
+
HiLink actionScriptKey Type
|
134
|
+
HiLink actionScriptMouse Type
|
135
|
+
HiLink actionScriptSelection Type
|
136
|
+
HiLink actionScriptSound Type
|
137
|
+
HiLink actionScriptStage Type
|
138
|
+
HiLink actionScriptSystem Type
|
139
|
+
HiLink actionScriptTextFormat Type
|
140
|
+
HiLink actionScriptCommunication Type
|
141
|
+
HiLink actionScriptXMLSocket Type
|
142
|
+
HiLink actionScriptTextField Type
|
143
|
+
HiLink actionScriptMethods Statement
|
144
|
+
HiLink actionScriptException Exception
|
145
|
+
HiLink actionScriptXML Type
|
146
|
+
HiLink actionScriptArrayConstant Constant
|
147
|
+
HiLink actionScriptStringConstant Constant
|
148
|
+
HiLink actionScriptEventConstant Constant
|
149
|
+
HiLink actionScriptTextSnapshot Type
|
150
|
+
HiLink actionScriptID3 Type
|
151
|
+
HiLink actionScriptAS2 Function
|
152
|
+
HiLink actionScriptStyleSheet Type
|
153
|
+
HiLink flash8Constants Constant
|
154
|
+
HiLink flash8Functions Function
|
155
|
+
HiLink flash8Properties Type
|
156
|
+
HiLink flash8Classes Type
|
157
|
+
HiLink actionScriptInclude Include
|
158
|
+
HiLink as3Packages Constant
|
159
|
+
HiLink as3Classes Constant
|
160
|
+
HiLink as3Properties Type
|
161
|
+
HiLink as3Functions Function
|
162
|
+
HiLink as3Constants Type
|
163
|
+
HiLink as3Errors Constant
|
164
|
+
HiLink as3Events Constant
|
165
|
+
delcommand HiLink
|
166
|
+
endif
|
167
|
+
|
168
|
+
let b:current_syntax = "actionscript"
|
169
|
+
if main_syntax == 'actionscript'
|
170
|
+
unlet main_syntax
|
171
|
+
endif
|
172
|
+
|
173
|
+
" vim: ts=8
|
@@ -0,0 +1,151 @@
|
|
1
|
+
" Vim syntax file
|
2
|
+
" Language: Erlang
|
3
|
+
" Maintainer: Oscar Hellstr�m <oscar@oscarh.net>
|
4
|
+
" URL: http://oscar.hellstrom.st
|
5
|
+
" Version: 2007-10-12
|
6
|
+
" ------------------------------------------------------------------------------
|
7
|
+
|
8
|
+
" Setup {{{1
|
9
|
+
" For version 5.x: Clear all syntax items
|
10
|
+
" For version 6.x: Quit when a syntax file was already loaded
|
11
|
+
if version < 600
|
12
|
+
syntax clear
|
13
|
+
elseif exists("b:current_syntax")
|
14
|
+
finish
|
15
|
+
endif
|
16
|
+
|
17
|
+
" Erlang is case sensitive
|
18
|
+
syn case match
|
19
|
+
|
20
|
+
" Match groups {{{1
|
21
|
+
|
22
|
+
syn match erlangStringModifier /\\./ contained
|
23
|
+
syn match erlangStringModifier /\~\%(-\?[0-9*]\+\)\?\%(\.[0-9*]\+\..\?\)\?\%(c\|f\|e\|g\|s\|w\|p\|W\|P\|B\|X\|#\|b\|+\|n\|i\)/ contained
|
24
|
+
syn match erlangModifier /\$\\\?./
|
25
|
+
|
26
|
+
syn match erlangInteger /\<\%([0-9]\+#[0-9a-fA-F]\+\|[0-9]\+\)\>/
|
27
|
+
syn match erlangFloat /\<[0-9]\+\.[0-9]\+\%(e-\?[0-9]\+\)\?\>/
|
28
|
+
|
29
|
+
syn keyword erlangTodo TODO FIXME XXX contained
|
30
|
+
syn match erlangEDoc /\(%%\s*\)\@<=@\w\+/ contained
|
31
|
+
syn match erlangComment /%.*$/ contains=@Spell,erlangTodo,erlangEDoc
|
32
|
+
|
33
|
+
syn keyword erlangKeyword band bor bnot bsl bsr bxor div rem xor
|
34
|
+
syn keyword erlangKeyword begin cond fun let query
|
35
|
+
|
36
|
+
syn keyword erlangMessage receive after
|
37
|
+
|
38
|
+
syn keyword erlangException try catch throw
|
39
|
+
|
40
|
+
syn keyword erlangConditional case if of
|
41
|
+
syn keyword erlangConditional not and or andalso orelse
|
42
|
+
syn keyword erlangConditional when
|
43
|
+
|
44
|
+
syn keyword erlangEnd end
|
45
|
+
|
46
|
+
syn keyword erlangBoolean true false
|
47
|
+
|
48
|
+
syn keyword erlangGuard is_list is_atom is_binary
|
49
|
+
syn keyword erlangGuard is_bitstring is_boolean
|
50
|
+
syn keyword erlangGuard is_tuple is_number is_integer
|
51
|
+
syn keyword erlangGuard is_float is_function is_constant
|
52
|
+
syn keyword erlangGuard is_pid is_port is_reference
|
53
|
+
syn keyword erlangGuard is_record is_process_alive
|
54
|
+
|
55
|
+
syn match erlangOperator /\/\|*\|+\|-\|++\|--/
|
56
|
+
syn match erlangOperator /->\|<-\|||\||\|!\|=/
|
57
|
+
syn match erlangOperator /=:=\|==\|\/=\|=\/=\|<\|>\|=<\|>=/
|
58
|
+
syn keyword erlangOperator div rem
|
59
|
+
|
60
|
+
"---OK? Skip needs quotes?
|
61
|
+
syn region erlangString start=/"/ end=/"/ skip=/\\/ contains=@Spell,erlangStringModifier
|
62
|
+
|
63
|
+
syn match erlangVariable /\<[A-Z_]\w*\>/
|
64
|
+
syn match erlangIgnoredVariable /\<_\w*\>/
|
65
|
+
syn match erlangAtom /\%(\%(^-\)\|#\)\@<!\<[a-z]\w*\>(\@!/
|
66
|
+
syn match erlangAtom /\\\@<!'[^']*\\\@<!'/
|
67
|
+
|
68
|
+
syn match erlangModule /\<[a-z]\w*:\@=/ contained
|
69
|
+
syn match erlangFunction /\<[a-z][A-Za-z0-9_:]*\s*(\@=/ contains=erlangModule
|
70
|
+
syn match erlangTopFunction /^[a-z]\w*\s*(\@=/
|
71
|
+
|
72
|
+
syn match erlangRecord /#\w\+/
|
73
|
+
|
74
|
+
syn match erlangTuple /{\|}/
|
75
|
+
syn match erlangList /\[\|\]/
|
76
|
+
|
77
|
+
syn match erlangTitle /\(^-module\s*(\)\@<=\w\+/
|
78
|
+
syn match erlangAttribute /^-\%(vsn\|author\|copyright\|compile\|deprecated\|module\|export\|import\|behaviour\)\s*(\@=/
|
79
|
+
syn match erlangInclude /^-include\%(_lib\)\? *(\@=/
|
80
|
+
syn match erlangRecordDef /^-record *(\@=/
|
81
|
+
syn match erlangDefine /^-define *(\@=/
|
82
|
+
syn match erlangPreCondit /^-\%(ifdef\|ifndef\|endif\) *(\@=/
|
83
|
+
|
84
|
+
syn match erlangType /^-\%(spec\|type\)[( ]\@=/
|
85
|
+
|
86
|
+
syn match erlangConstant /\%(-define(\)\@<=\w\+/
|
87
|
+
syn match erlangConstant /?\w\+/
|
88
|
+
syn match erlangMacro /\%(-define(\)\@<=\w\+\s*(\@=/
|
89
|
+
syn match erlangMacro /?\w\+\s*(\@=/
|
90
|
+
|
91
|
+
syn match erlangBitType /\%(\/\|-\)\@<=\%(bits\|bitstring\|binary\|integer\|float\|unit\)\>/
|
92
|
+
syn match erlangBitSize /:\@<=[0-9]\+/
|
93
|
+
|
94
|
+
syn match erlangBinary /<<\|>>/
|
95
|
+
|
96
|
+
" BIFS
|
97
|
+
syn match erlangBIF /\%([^:0-9A-Za-z_]\|\<erlang:\)\@<=\%(abs\|apply\|atom_to_list\|binary_to_list\|binary_to_term\|check_process_code\|concat_binary\|date\|delete_module\|disconnect_node\|element\|erase\|exit\|float\|float_to_list\|garbage_collect\|get\|get_keys\|group_leader\|halt\|hd\|integer_to_list\|iolist_to_binary\|iolist_size\|length\|link\|list_to_atom\|list_to_binary\|list_to_existing_atom\|list_to_float\|list_to_integer\|list_to_pid\|list_to_tuple\|load_module\|make_ref\|monitor_node\|node\|nodes\|now\|open_port\|pid_to_list\|port_close\|port_command\|port_connect\|port_control\|pre_loaded\|process_flag\|process_info\|processes\|purge_module\|put\|register\|registered\|round\|self\|setelement\|size\|bit_size\|spawn\|spawn_link\|spawn_opt\|split_binary\|statistics\|term_to_binary\|time\|tl\|trunc\|tuple_to_list\|unlink\|unregister\|whereis\)\((\|\/[0-9]\)\@=/
|
98
|
+
syn match erlangBif /\<\%(erlang:\)\@<=\%(append_element\|bump_reductions\|cancel_timer\|demonitor\|display\|error\|fault\|fun_info\|fun_to_list\|function_exported\|get_cookie\|get_stacktrace\|hash\|hibernate\|info\|is_builtin\|loaded\|localtime\|localtime_to_universaltime\|localtime_to_universaltime\|make_tuple\|md5\|md5_init\|md5_update\|memory\|monitor\|monitor_node\|phash\|phash2\|port_call\|port_info\|port_to_list\|ports\|process_display\|raise\|read_timer\|ref_to_list\|resume_process\|send\|send_after\|send_nosuspend\|set_cookie\|spawn_monitor\|start_timer\|suspend_process\|system_flag\|system_info\|system_monitor\|trace\|trace_delivered\|trace_info\|trace_pattern\|universaltime\|universaltime_to_localtime\|yield\)(\@=/
|
99
|
+
syn match erlangBif /erlang\(:\w\)\@=/
|
100
|
+
" }}}
|
101
|
+
|
102
|
+
" Link Erlang stuff to Vim groups {{{1
|
103
|
+
hi link erlangTitle Title
|
104
|
+
hi link erlangTodo Todo
|
105
|
+
hi link erlangString String
|
106
|
+
hi link erlangNoSpellString String
|
107
|
+
hi link erlangModifier Character
|
108
|
+
hi link erlangStringModifier SpecialChar
|
109
|
+
hi link erlangComment Comment
|
110
|
+
hi link erlangVariable Identifier
|
111
|
+
hi link erlangIgnoredVariable Comment
|
112
|
+
hi link erlangEDoc SpecialComment
|
113
|
+
hi link erlangInclude Include
|
114
|
+
hi link erlangRecordDef Typedef
|
115
|
+
hi link erlangAttribute Keyword
|
116
|
+
hi link erlangKeyword Keyword
|
117
|
+
hi link erlangMacro Macro
|
118
|
+
hi link erlangDefine Define
|
119
|
+
hi link erlangConstant Constant
|
120
|
+
hi link erlangPreCondit PreCondit
|
121
|
+
hi link erlangPreProc PreProc
|
122
|
+
hi link erlangDelimiter Delimiter
|
123
|
+
hi link erlangEnd Delimiter
|
124
|
+
hi link erlangBitDelimiter Normal
|
125
|
+
hi link erlangOperator Operator
|
126
|
+
hi link erlangConditional Conditional
|
127
|
+
hi link erlangGuard Conditional
|
128
|
+
hi link erlangBoolean Boolean
|
129
|
+
hi link erlangAtom Normal
|
130
|
+
hi link erlangRecord Structure
|
131
|
+
hi link erlangInteger Number
|
132
|
+
hi link erlangFloat Float
|
133
|
+
hi link erlangHex Number
|
134
|
+
hi link erlangBIF Keyword
|
135
|
+
hi link erlangFun Keyword
|
136
|
+
hi link erlangFunction Function
|
137
|
+
hi link erlangTopFunction Label
|
138
|
+
hi link erlangModule Include
|
139
|
+
hi link erlangList Delimiter
|
140
|
+
hi link erlangTuple Delimiter
|
141
|
+
hi link erlangBinary Keyword
|
142
|
+
hi link erlangBitVariable Identifier
|
143
|
+
hi link erlangBitType Type
|
144
|
+
hi link erlangType Type
|
145
|
+
hi link erlangBitSize Number
|
146
|
+
hi link erlangException Exception
|
147
|
+
" }}}
|
148
|
+
|
149
|
+
let b:current_syntax = "erlang"
|
150
|
+
|
151
|
+
" vim: set foldmethod=marker:
|
@@ -0,0 +1,427 @@
|
|
1
|
+
" Vim syntax file
|
2
|
+
" Language: haxe
|
3
|
+
" Derived from:
|
4
|
+
" http://tech.motion-twin.com/zip/haxe.vim
|
5
|
+
" and http://www.cactusflower.org/haxe.vim
|
6
|
+
" Please check :help haxe.vim for comments on some of the options available.
|
7
|
+
|
8
|
+
set errorformat=%f\:%l\:\ characters\ %c-%*[^\ ]\ %m,%f\:%l\:\ %m
|
9
|
+
|
10
|
+
" Quit when a syntax file was already loaded
|
11
|
+
if !exists("main_syntax")
|
12
|
+
if version < 600
|
13
|
+
syntax clear
|
14
|
+
elseif exists("b:current_syntax")
|
15
|
+
finish
|
16
|
+
endif
|
17
|
+
let main_syntax='haxe'
|
18
|
+
endif
|
19
|
+
|
20
|
+
if version < 508
|
21
|
+
command! -nargs=+ HaxeHiLink hi link <args>
|
22
|
+
else
|
23
|
+
command! -nargs=+ HaxeHiLink hi def link <args>
|
24
|
+
endif
|
25
|
+
|
26
|
+
" some characters that cannot be in a haxe program (outside a string)
|
27
|
+
syn match haxeError "[\\@`]"
|
28
|
+
syn match haxeError "<<<\|=>\|<>\|||=\|&&=\|\*\/"
|
29
|
+
|
30
|
+
" use separate name so that it can be deleted in haxecc.vim
|
31
|
+
syn match haxeError2 "#\|=<"
|
32
|
+
HaxeHiLink haxeError2 haxeError
|
33
|
+
|
34
|
+
syn keyword haxeExternal import extern using
|
35
|
+
syn keyword haxeDefine package
|
36
|
+
syn keyword haxeConditional if else switch
|
37
|
+
syn keyword haxeRepeat while for do in
|
38
|
+
syn keyword haxeBoolean true false
|
39
|
+
syn keyword haxeConstant null
|
40
|
+
syn keyword haxeTypedef this super
|
41
|
+
syn keyword haxeOperator new cast
|
42
|
+
syn keyword haxeCoreType Void Bool Int Float Dynamic
|
43
|
+
syn keyword haxeStatement return
|
44
|
+
|
45
|
+
syn keyword haxeTypedef1 typedef
|
46
|
+
syn keyword haxeStructure var enum
|
47
|
+
syn keyword haxeScopeDecl private public
|
48
|
+
syn keyword haxeScopeDecl2 static override final dynamic
|
49
|
+
syn keyword haxeFunctionDef function
|
50
|
+
|
51
|
+
syn keyword haxeExceptions throw try catch finally untyped
|
52
|
+
syn keyword haxeAssert assert
|
53
|
+
syn keyword haxeMethodDecl synchronized throws
|
54
|
+
syn keyword haxeClassDecl extends implements interface
|
55
|
+
syn match haxeDelimiter "[;:=\.]"
|
56
|
+
syn match haxeOperator "\(\.\.\.\|\*\|+\|-\|<<\|>>\|\/\|!\|||\|&&\|%\)"
|
57
|
+
syn match haxeComparison "\(==\|<=\|>=\|<\|>\|!=\)"
|
58
|
+
syn match haxeOptionalVars contained "?[a-zA-Z_]\+"
|
59
|
+
|
60
|
+
syn match haxeFunctionRef "[_$a-zA-Z][_$a-zA-Z0-9_]*("me=e-1
|
61
|
+
|
62
|
+
" We use a match here to differentiate the keyword class from MyClass.class
|
63
|
+
syn match haxeTypedef "\.\s*\<class\>"ms=s+1
|
64
|
+
syn match haxeClassDecl "^class\>"
|
65
|
+
syn match haxeClassDecl "[^.]\s*\<class\>"ms=s+1
|
66
|
+
syn keyword haxeBranch break continue nextgroup=haxeUserLabelRef skipwhite
|
67
|
+
syn match haxeUserLabelRef "\k\+" contained
|
68
|
+
syn match haxeClassDef "\(^\s*class\s*\)\@<=[_$a-zA-Z][_$a-zA-Z0-9_]*" contains=haxeTypedef,haxeClassDecl
|
69
|
+
|
70
|
+
syn match haxeLangClass "\<System\>"
|
71
|
+
syn keyword haxeLangClass Array ArrayAccess Class Date DateTools EReg Enum
|
72
|
+
syn keyword haxeLangClass Hash IntHash IntIter Iterable Iterator Lambda
|
73
|
+
syn keyword haxeLangClass List Math Null Reflect Std String StringBug
|
74
|
+
syn keyword haxeLangClass StringTools Type UInt ValueType Xml XmlType
|
75
|
+
|
76
|
+
syn keyword haxeFlashTop flash
|
77
|
+
syn keyword haxeFlashInner accessibility deskdop display errors events
|
78
|
+
syn keyword haxeFlashInner external filters geom media net printing sampler
|
79
|
+
syn keyword haxeFlashInner system text ui utils xml display engine
|
80
|
+
syn keyword haxeFlashFinal BitmapData ExternalInterface BevelFilter
|
81
|
+
syn keyword haxeFlashFinal BitmapFilter BlurFilter ColorMatrixFilter ConvolutionFilter
|
82
|
+
syn keyword haxeFlashFinal DisplacementMapFilter DropShadowFilter GlowFilter GradientBevelFilter
|
83
|
+
syn keyword haxeFlashFinal GradientGlowFilter ColorTransform Matrix Point Rectangle Transform
|
84
|
+
syn keyword haxeFlashFinal FileReference FileReferenceList Capabilities IME Security StyleSheet
|
85
|
+
syn keyword haxeFlashFinal TextRenderer Accessibility Boot Button Camera Color ContextMenu
|
86
|
+
syn keyword haxeFlashFinal ContextMenuItem ExtendedKey Key Lib LoadVars
|
87
|
+
syn keyword haxeFlashFinal LocalConnection Microphone Mouse MovieClip
|
88
|
+
syn keyword haxeFlashFinal MovieClipLoader NetConnection NetStream PrintJob
|
89
|
+
syn keyword haxeFlashFinal Selection SelectionListener SharedObject Sound
|
90
|
+
syn keyword haxeFlashFinal Stage System TextField TextFormat TextSnapshot
|
91
|
+
syn keyword haxeFlashFinal Video XMLRequest XMLSocket
|
92
|
+
syn keyword haxeFlash9Final Accessibility AccessibilityImplementation
|
93
|
+
syn keyword haxeFlash9Final AccessibilityProperties Clipboard
|
94
|
+
syn keyword haxeFlash9Final ClipboardFormats ClipboardTransferMode AVM1Movie
|
95
|
+
syn keyword haxeFlash9Final ActionScriptVersion Bitmap BitmapData
|
96
|
+
syn keyword haxeFlash9Final BitmapDataChannel BlendMode CapsStyle
|
97
|
+
syn keyword haxeFlash9Final DisplayObject DisplayObjectContainer FrameLabel
|
98
|
+
syn keyword haxeFlash9Final GradientType Graphics GraphicsBitmapFill
|
99
|
+
syn keyword haxeFlash9Final GraphicsEndFill GraphicsGradientFill GraphicsPath
|
100
|
+
syn keyword haxeFlash9Final GraphicsPathCommand GraphicsPathWinding
|
101
|
+
syn keyword haxeFlash9Final GraphicsShaderFill GraphicsSolidFill
|
102
|
+
syn keyword haxeFlash9Final GraphicsStroke GraphicsTrianglePath
|
103
|
+
syn keyword haxeFlash9Final IBitmapDrawable IGraphicsData IGraphicsFill
|
104
|
+
syn keyword haxeFlash9Final IGraphicsPath IGraphicsStroke InteractiveObject
|
105
|
+
syn keyword haxeFlash9Final InterpolationMethod JointStyle
|
106
|
+
syn keyword haxeFlash9Final LineScaleMode Loader LoaderInfo MorphShape
|
107
|
+
syn keyword haxeFlash9Final MovieClip PixelSnapping SWFVersion
|
108
|
+
syn keyword haxeFlash9Final Scene Shader ShaderData ShaderInput ShaderJob ShaderParameter
|
109
|
+
syn keyword haxeFlash9Final ShaderParameterType ShaderPrecision Shape
|
110
|
+
syn keyword haxeFlash9Final SimpleButton SpreadMethod Sprite
|
111
|
+
syn keyword haxeFlash9Final Stage StageAlign StageDisplayState StageQuality
|
112
|
+
syn keyword haxeFlash9Final StageScaleMode TriangleCulling
|
113
|
+
syn keyword haxeFlash9Final EOFError Error IOError Illegal OperationError
|
114
|
+
syn keyword haxeFlash9Final InvalidSWFError MemoryError ScriptTimeoutError
|
115
|
+
syn keyword haxeFlash9Final StackOverflowError ActivityEventAsyncErrorEvent
|
116
|
+
syn keyword haxeFlash9Final ContextMenuEvent DataEvent ErrorEvent Event
|
117
|
+
syn keyword haxeFlash9Final EventDispatcher EventPhase FocusEvent
|
118
|
+
syn keyword haxeFlash9Final FullScreenEvent HTTPStatusEvent IEventDispatcher IMEEvent
|
119
|
+
syn keyword haxeFlash9Final IOErrorEvent KeyboardEvent MouseEvent
|
120
|
+
syn keyword haxeFlash9Final NetFilterEvent NetStatusEvent ProgressEvent
|
121
|
+
syn keyword haxeFlash9Final SampleDataEvent SecurityErrorEvent ShaderEvent StatusEvent
|
122
|
+
syn keyword haxeFlash9Final SyncEvent TextEvent TimerEvent WeakFunctionClosure WeakMethodClosure
|
123
|
+
syn keyword haxeFlash9Final ExternalInterface BevelFilter BitmapFilter
|
124
|
+
syn keyword haxeFlash9Final BitmapFilterQuality BitmapFilterType
|
125
|
+
syn keyword haxeFlash9Final BlurFilter ColorMatrixFilter ConvolutionFilter DisplacementMapFilter
|
126
|
+
syn keyword haxeFlash9Final DisplacementMapFilterMode DropShadowFilter
|
127
|
+
syn keyword haxeFlash9Final GlowFilter GradientBevelFilter
|
128
|
+
syn keyword haxeFlash9Final GradientGlowFilter ShaderFilter ColorTransform
|
129
|
+
syn keyword haxeFlash9Final Matrix Matrix3D Orientation3D
|
130
|
+
syn keyword haxeFlash9Final PerspectiveProjection Point Rectangle Transform
|
131
|
+
syn keyword haxeFlash9Final Utils3D Vector3D Camera ID3Info
|
132
|
+
syn keyword haxeFlash9Final Microphone Sound SoundChannel SoundCodec SoundLoaderContext SoundMixer
|
133
|
+
syn keyword haxeFlash9Final SoundTransform Video DynamicPropertyOutput FileFilter FileReference
|
134
|
+
syn keyword haxeFlash9Final FileReferenceList IDynamicPropertyOutput
|
135
|
+
syn keyword haxeFlash9Final IDynamicPropertyWriter LocalConnection
|
136
|
+
syn keyword haxeFlash9Final NetConnection NetStream NetStreamInfo NetSTreamPlayOptions
|
137
|
+
syn keyword haxeFlash9Final NetSTreamPlayTransitions ObjectEncoding Responder SharedObject
|
138
|
+
syn keyword haxeFlash9Final SharedObjectFlushStatus Socket URLLoader URLLoaderDataFormat URLRequest
|
139
|
+
syn keyword haxeFlash9Final URLRequestHeader URLRequestMethod URLStream
|
140
|
+
syn keyword haxeFlash9Final URLVariables XMLSocket PrintJob
|
141
|
+
syn keyword haxeFlash9Final PrintJobOptions PrintJobOrientation Api
|
142
|
+
syn keyword haxeFlash9Final DeleteObjectSample NewObjectSample
|
143
|
+
syn keyword haxeFlash9Final Sample StackFrame ApplicationDomain Capabilities FSCommand IME
|
144
|
+
syn keyword haxeFlash9Final IMEConversionMode JPEGLoaderContext
|
145
|
+
syn keyword haxeFlash9Final LoaderContext Security SecurityDomain
|
146
|
+
syn keyword haxeFlash9Final SecurityPanel System
|
147
|
+
syn keyword haxeFlash9Final BreakOpportunity CFFHinting ContentElement
|
148
|
+
syn keyword haxeFlash9Final DigitCase DigitWidth EastAsianJustifier ElementFormat FontDescription
|
149
|
+
syn keyword haxeFlash9Final FontLookup FontMetrics FontPosture FontWeight
|
150
|
+
syn keyword haxeFlash9Final GraphicElement GroupElement
|
151
|
+
syn keyword haxeFlash9Final JustificationStyle Kerning LIgatureLevel
|
152
|
+
syn keyword haxeFlash9Final LineJustification RenderingMode
|
153
|
+
syn keyword haxeFlash9Final SpaceJustifier TabAlignment TabStop TextBaseline TextBlock TextElement
|
154
|
+
syn keyword haxeFlash9Final TextJustifier TextLine TextLineCreationResult TextLineMirrorRegion
|
155
|
+
syn keyword haxeFlash9Final TextLineValidity TextRotation TypographicCase
|
156
|
+
syn keyword haxeFlash9Final AntiAliasType CSMSettings Font
|
157
|
+
syn keyword haxeFlash9Final FontStyle FontType GridFitType StaticText StyleSheet TextColorType
|
158
|
+
syn keyword haxeFlash9Final TextDisplayMode TextExtent TextField
|
159
|
+
syn keyword haxeFlash9Final TextFieldAutoSize TextFieldType TextFormat
|
160
|
+
syn keyword haxeFlash9Final TextFormatAlign TextFormatDisplay TextLineMetrics TextRenderer TextRun
|
161
|
+
syn keyword haxeFlash9Final TextSnapshot Trace ContextMenu ContextMenuBuiltInItems
|
162
|
+
syn keyword haxeFlash9Final ContextMenuClipboardItems ContextMenuItem KeyLocation Keyboard Mouse
|
163
|
+
syn keyword haxeFlash9Final MouseCursor ByteArray Dictionary Endian
|
164
|
+
syn keyword haxeFlash9Final IDataInput IDataOutput IExternalizable
|
165
|
+
syn keyword haxeFlash9Final Namespace ObjectInput ObjectOutput Proxy QName SetIntervalTimer Timer
|
166
|
+
syn keyword haxeFlash9Final TypedDictionary XML XMLDocument XMLList XMLNode
|
167
|
+
syn keyword haxeFlash9Final XMLNodeType XMLParser XMLTag
|
168
|
+
syn keyword haxeFlash9Final Boot Lib Memory Vector
|
169
|
+
|
170
|
+
HaxeHiLink haxeLangObject haxeConstant
|
171
|
+
syn cluster haxeTop add=haxeLangObject,haxeLangClass
|
172
|
+
syn cluster haxeClasses add=haxeLangClass,haxeFlashClass
|
173
|
+
|
174
|
+
if filereadable(expand("<sfile>:p:h")."/haxeid.vim")
|
175
|
+
source <sfile>:p:h/haxeid.vim
|
176
|
+
endif
|
177
|
+
|
178
|
+
if !exists("haxe_no_trail_space_error")
|
179
|
+
syn match haxeSpaceError "\s\+$"
|
180
|
+
endif
|
181
|
+
if !exists("haxe_no_tab_space_error")
|
182
|
+
syn match haxeSpaceError " \+\t"me=e-1
|
183
|
+
endif
|
184
|
+
|
185
|
+
syn region haxeLabelRegion transparent matchgroup=haxeLabel start="\<case\>"
|
186
|
+
\ matchgroup=NONE end=":"
|
187
|
+
\ contains=haxeNumber,haxeChr,haxeNumber2
|
188
|
+
syn match haxeUserLabel "\({\s*\|^\s*\|,\s*\)\@<=[_$a-zA-Z][_$a-zA-Z0-9_]*:\s"he=e-1 contains=haxeDelimiter
|
189
|
+
\ contains=haxeLabel
|
190
|
+
syn keyword haxeLabel default never
|
191
|
+
|
192
|
+
" Everything - used in parenthases checking or something
|
193
|
+
syn cluster haxeTop add=haxeExternal,haxeError,haxeError,haxeBranch,
|
194
|
+
\ haxeLabelRegion,haxeLabel,haxeConditional,
|
195
|
+
\ haxeRepeat,haxeBoolean,haxeConstant,
|
196
|
+
\ haxeTypedef,haxeOperator,haxeType,haxeCoreType,
|
197
|
+
\ haxeStatement,haxeStorageClass,haxeAssert,
|
198
|
+
\ haxeExceptions,haxeMethodDecl,haxeClassDecl,
|
199
|
+
\ haxeClassDecl,haxeClassDecl,haxeScopeDecl,
|
200
|
+
\ haxeError,haxeError2,haxeUserLabel,
|
201
|
+
\ haxeLangObject,haxeFlashTop,haxeFlashInner,
|
202
|
+
\ haxeFlashFinal,haxeFlash9Final,haxeFunctionRef,
|
203
|
+
\ haxeComparison,haxeOptionalVars
|
204
|
+
|
205
|
+
" Comments
|
206
|
+
syn keyword haxeTodo contained TODO FIXME XXX
|
207
|
+
if exists("haxe_comment_strings")
|
208
|
+
syn region haxeCmString contained start=+"+ end=+"+ end=+$+
|
209
|
+
\ end=+\*/+me=s-1,he=s-1
|
210
|
+
\ contains=haxeSpecial,haxeCmStar,haxeSpecChr,@Spell
|
211
|
+
syn region haxeCm2String contained start=+"+ end=+$\|"+
|
212
|
+
\ contains=haxeSpecial,haxeSpecChr,@Spell
|
213
|
+
syn match haxeCmCharacter contained "'\\[^']\{1,6\}'" contains=haxeSpecChr
|
214
|
+
syn match haxeCmCharacter contained "'\\''" contains=haxeSpecChr
|
215
|
+
syn match haxeCmCharacter contained "'[^\\]'"
|
216
|
+
syn cluster haxeCmSpecial add=haxeCmString,haxeCmCharacter,haxeNumber,haxeNumber2
|
217
|
+
syn cluster haxeCmSpecial2 add=haxeCm2String,haxeCmCharacter,haxeNumber,haxeNumber2
|
218
|
+
endif
|
219
|
+
syn region haxeCm start="/\*" end="\*/"
|
220
|
+
\ contains=@haxeCmSpecial,haxeTodo,@Spell
|
221
|
+
syn match haxeCmStar contained "^\s*\*[^/]"me=e-1
|
222
|
+
syn match haxeCmStar contained "^\s*\*$"
|
223
|
+
syn match haxeLineCm "//.*" contains=@haxeCmSpecial2,haxeTodo,@Spell
|
224
|
+
HaxeHiLink haxeCmString haxeDocTags
|
225
|
+
HaxeHiLink haxeCm2String haxeString
|
226
|
+
HaxeHiLink haxeCmCharacter haxeChr
|
227
|
+
syn cluster haxeTop add=haxeCm,haxeLineCm
|
228
|
+
if exists("haxe_haxedoc") || main_syntax == 'jsp'
|
229
|
+
syntax case ignore
|
230
|
+
" syntax coloring for haxedoc comments (HTML)
|
231
|
+
" syntax include @haxeHtml <sfile>:p:h/html.vim
|
232
|
+
" unlet b:current_syntax
|
233
|
+
syn region haxeDocCm start="/\*\*" end="\*/" keepend
|
234
|
+
\ contains=haxeCmTitle,@haxeHtml,haxeDocTags,haxeTodo,@Spell,haxeProposedTags
|
235
|
+
syn region haxeCmTitle contained matchgroup=haxeDocCm start="/\*\*"
|
236
|
+
\ matchgroup=haxeCmTitle keepend end="\.$"
|
237
|
+
\ end="\.[ \t\r<]"me=e-1
|
238
|
+
\ end="[^{]@"me=s-2,he=s-1 end="\*/"me=s-1,he=s-1
|
239
|
+
\ contains=@haxeHtml,haxeCmStar,haxeTodo,@Spell,haxeDocTags,haxeProposedTags
|
240
|
+
syn region haxeDocTags contained start="{@\(link\|linkplain\|inherit[Dd]oc\|doc[rR]oot\|value\)"
|
241
|
+
\ end="}"
|
242
|
+
syn match haxeDocTags contained "@\(see\|param\|exception\|throws\|since\)\s\+\S\+"
|
243
|
+
\ contains=haxeDocParam
|
244
|
+
syn match haxeDocParam contained "\s\S\+"
|
245
|
+
syn match haxeDocTags contained "@\(version\|author\|return\|deprecated\|serial\|serialField\|serialData\)\>"
|
246
|
+
syn match haxeProposedTags contained "@\(category\|example\|tutorial\|index\|exclude\|todo\|internal\|obsolete\)\>"
|
247
|
+
syntax case match
|
248
|
+
endif
|
249
|
+
syn match haxeCm "/\*\*/" " Edge case
|
250
|
+
|
251
|
+
|
252
|
+
" Strings and constants
|
253
|
+
syn match haxeSpecError contained "\\."
|
254
|
+
"syn match haxeSpecChrError contained "[^']"
|
255
|
+
syn match haxeSpecChr contained "\\\([4-9]\d\|[0-3]\d\d\|[\"\\'ntbrf]\|u\x\{4\}\)"
|
256
|
+
syn match haxeEregEscape contained "\(\\\\\|\\/\)"
|
257
|
+
syn region haxeEreg start=+\~\/+ end=+\/[gims]*+ contains=haxeEregEscape
|
258
|
+
|
259
|
+
syn region haxeString start=+"+ end=+"+ contains=haxeSpecChr,haxeSpecError,@Spell
|
260
|
+
syn region haxeSingleString start=+'+ end=+'+
|
261
|
+
syn match haxeChr "'[^']*'" contains=haxeSpecChr,haxeSpecChrError
|
262
|
+
syn match haxeChr "'\\''" contains=haxeSpecChr
|
263
|
+
syn match haxeChr "'[^\\]'"
|
264
|
+
syn match haxeNumber "\<\(0[0-7]*\|0[xX]\x\+\|\d\+\)[lL]\=\>" contains=haxeSpecNum
|
265
|
+
"syn match haxeNumber "\(\<\d\+\.\d*\|\.\d\+\)\([eE][-+]\=\d\+\)\=[fFdD]\="
|
266
|
+
syn match haxeNumber2 "\(\<\d\+\.\d\+\)\([eE][-+]\=\d\+\)\=[fFdD]\=" contains=haxeSpecNum
|
267
|
+
syn match haxeNumber2 "\<\d\+[eE][-+]\=\d\+[fFdD]\=\>" contains=haxeSpecNum
|
268
|
+
syn match haxeNumber2 "\<\d\+\([eE][-+]\=\d\+\)\=[fFdD]\>" contains=haxeSpecNum
|
269
|
+
syn match haxeSpecNum contained "\(0[xX]\|[\.+-]\)"
|
270
|
+
|
271
|
+
syn region haxeCondIf start="#if \+!\?" end="\(\W\|$\)" skip="([A-Za-z0-9_ |&!]\+)"
|
272
|
+
syn region haxeCondElseIf start="#elseif \+!\?" end="\(\W\|$\)" skip="([A-Za-z0-9_ |&!]\+)"
|
273
|
+
syn match haxeCondElse "#else\s*$"
|
274
|
+
syn match haxeCondEnd "#end"
|
275
|
+
syn match haxeCondError "#else .*$"
|
276
|
+
|
277
|
+
" unicode characters
|
278
|
+
syn match haxeSpecial "\\u\d\{4\}"
|
279
|
+
|
280
|
+
syn match haxeType ":[a-zA-Z_\.]\+"
|
281
|
+
\ contains=haxeDelimiter,haxeCoreType,haxeFlashTop,haxeFlashInner,haxeFlashFinal,haxeFlash9Final
|
282
|
+
|
283
|
+
syn cluster haxeTop add=haxeString,haxeChr,haxeNumber,haxeNumber2
|
284
|
+
syn cluster haxeTop add=haxeSpecial,haxeStringError,haxeDelimiter,haxeType
|
285
|
+
|
286
|
+
syn keyword haxeTraceFun trace contained
|
287
|
+
syn region haxeTrace start=+\(^\s*\)\@<=trace(+ end=+);+ contains=haxeTraceFun
|
288
|
+
|
289
|
+
if exists("haxe_highlight_functions")
|
290
|
+
if haxe_highlight_functions == "indent"
|
291
|
+
syn match haxeFuncDef "^\(\t\| \{4\}\)[_$a-zA-Z][_$a-zA-Z0-9_. \[\]]*([^-+*/()]*)"
|
292
|
+
\ contains=haxeType,haxeStorageClass,@haxeClasses
|
293
|
+
syn region haxeFuncDef start=+^\(\t\| \{4\}\)[$_a-zA-Z][$_a-zA-Z0-9_. \[\]]*([^-+*/()]*,\s*+
|
294
|
+
\ end=+)+ contains=haxeType,haxeStorageClass,@haxeClasses
|
295
|
+
syn match haxeFuncDef "^ [$_a-zA-Z][$_a-zA-Z0-9_. \[\]]*([^-+*/()]*)"
|
296
|
+
\ contains=haxeType,haxeStorageClass,@haxeClasses
|
297
|
+
syn region haxeFuncDef start=+^ [$_a-zA-Z][$_a-zA-Z0-9_. \[\]]*([^-+*/()]*,\s*+
|
298
|
+
\ end=+)+
|
299
|
+
\ contains=haxeType,haxeStorageClass,@haxeClasses
|
300
|
+
else
|
301
|
+
" This line catches method declarations at any indentation>0, but it assumes
|
302
|
+
" two things:
|
303
|
+
" 1. class names are always capitalized (ie: Button)
|
304
|
+
" 2. method names are never capitalized (except constructors, of course)
|
305
|
+
syn region haxeFuncDef start=+\s\+\(\(void\|boolean\|char\|byte\|short\|int\|long\|float\|double\|\([A-Za-z_][A-Za-z0-9_$]*\.\)*[A-Z][A-Za-z0-9_$]*\)\(\[\]\)*\s\+[a-z][A-Za-z0-9_$]*\|[A-Z][A-Za-z0-9_$]*\)\s*(+
|
306
|
+
\ end=+)+
|
307
|
+
\ contains=haxeType,haxeStorageClass,haxeCm,haxeLineCm,@haxeClasses
|
308
|
+
endif
|
309
|
+
syn match haxeBraces "[{}]"
|
310
|
+
syn cluster haxeTop add=haxeFuncDef,haxeBraces
|
311
|
+
endif
|
312
|
+
|
313
|
+
if exists("haxe_mark_braces_in_parens_as_errors")
|
314
|
+
syn match haxeInParen contained "[{}]"
|
315
|
+
HaxeHiLink haxeInParen haxeError
|
316
|
+
syn cluster haxeTop add=haxeInParen
|
317
|
+
endif
|
318
|
+
|
319
|
+
" catch errors caused by wrong parenthesis
|
320
|
+
syn region haxeParenT transparent matchgroup=haxeParen start="("
|
321
|
+
\ end=")" contains=@haxeTop,haxeParenT1
|
322
|
+
syn region haxeParenT1 transparent matchgroup=haxeParen1 start="("
|
323
|
+
\ end=")" contains=@haxeTop,haxeParenT2 contained
|
324
|
+
syn region haxeParenT2 transparent matchgroup=haxeParen2 start="("
|
325
|
+
\ end=")" contains=@haxeTop,haxeParenT contained
|
326
|
+
syn match haxeParenError ")"
|
327
|
+
HaxeHiLink haxeParenError haxeError
|
328
|
+
|
329
|
+
|
330
|
+
if !exists("haxe_minlines")
|
331
|
+
let haxe_minlines = 5000
|
332
|
+
endif
|
333
|
+
exec "syn sync ccomment haxeCm minlines=" . haxe_minlines
|
334
|
+
syn sync linebreaks=30
|
335
|
+
|
336
|
+
" The default highlighting.
|
337
|
+
if version >= 508 || !exists("did_haxe_syn_inits")
|
338
|
+
if version < 508
|
339
|
+
let did_haxe_syn_inits = 1
|
340
|
+
endif
|
341
|
+
|
342
|
+
HaxeHiLink haxeFunctionDef Identifier
|
343
|
+
HaxeHiLink haxeFuncDef Identifier
|
344
|
+
HaxeHiLink haxeFunctionRef Function
|
345
|
+
HaxeHiLink haxeBraces Function
|
346
|
+
HaxeHiLink haxeBranch Conditional
|
347
|
+
HaxeHiLink haxeUserLabelRef haxeUserLabel
|
348
|
+
HaxeHiLink haxeLabel Label
|
349
|
+
HaxeHiLink haxeUserLabel Label
|
350
|
+
HaxeHiLink haxeConditional Conditional
|
351
|
+
HaxeHiLink haxeRepeat Repeat
|
352
|
+
HaxeHiLink haxeExceptions Exception
|
353
|
+
HaxeHiLink haxeAssert Statement
|
354
|
+
|
355
|
+
HaxeHiLink haxeClassDef Underlined
|
356
|
+
HaxeHiLink haxeStructure Structure
|
357
|
+
HaxeHiLink haxeMethodDecl haxeStorageClass
|
358
|
+
HaxeHiLink haxeClassDecl Structure
|
359
|
+
HaxeHiLink haxeScopeDecl StorageClass
|
360
|
+
HaxeHiLink haxeScopeDecl2 Tag
|
361
|
+
HaxeHiLink haxeBoolean Boolean
|
362
|
+
HaxeHiLink haxeSpecial Special
|
363
|
+
HaxeHiLink haxeSpecError Error
|
364
|
+
HaxeHiLink haxeSpecChrError Error
|
365
|
+
HaxeHiLink haxeString String
|
366
|
+
HaxeHiLink haxeSingleString Character
|
367
|
+
|
368
|
+
HaxeHiLink haxeEreg Number
|
369
|
+
HaxeHiLink haxeEregEscape Debug
|
370
|
+
HaxeHiLink haxeChr Character
|
371
|
+
HaxeHiLink haxeSpecChr SpecialChar
|
372
|
+
HaxeHiLink haxeNumber Number
|
373
|
+
HaxeHiLink haxeNumber2 Float
|
374
|
+
HaxeHiLink haxeSpecNum Boolean
|
375
|
+
HaxeHiLink haxeError Error
|
376
|
+
HaxeHiLink haxeStringError Debug
|
377
|
+
HaxeHiLink haxeStatement Statement
|
378
|
+
HaxeHiLink haxeOperator Operator
|
379
|
+
HaxeHiLink haxeComparison Repeat
|
380
|
+
HaxeHiLink haxeTraceFun SpecialComment
|
381
|
+
HaxeHiLink haxeTrace Comment
|
382
|
+
HaxeHiLink haxeDelimiter Delimiter
|
383
|
+
|
384
|
+
HaxeHiLink haxeCm Comment
|
385
|
+
HaxeHiLink haxeDocCm Comment
|
386
|
+
HaxeHiLink haxeLineCm Comment
|
387
|
+
HaxeHiLink haxeConstant Constant
|
388
|
+
HaxeHiLink haxeTypedef Typedef
|
389
|
+
HaxeHiLink haxeTypedef1 Typedef
|
390
|
+
HaxeHiLink haxeTodo Todo
|
391
|
+
HaxeHiLink haxeLangClass Special
|
392
|
+
HaxeHiLink haxeFlashClass Keyword
|
393
|
+
HaxeHiLink haxeFunction Function
|
394
|
+
HaxeHiLink haxeCmTitle Special
|
395
|
+
HaxeHiLink haxeDocTags SpecialComment
|
396
|
+
HaxeHiLink haxeProposedTags SpecialComment
|
397
|
+
HaxeHiLink haxeCmStar Comment
|
398
|
+
|
399
|
+
HaxeHiLink haxeDocParam Function
|
400
|
+
HaxeHiLink haxeCoreType Keyword
|
401
|
+
HaxeHiLink haxeType Type
|
402
|
+
HaxeHiLink haxeExternal Include
|
403
|
+
HaxeHiLink haxeDefine Define
|
404
|
+
HaxeHiLink htmlComment Special
|
405
|
+
HaxeHiLink htmlCommentPart Special
|
406
|
+
HaxeHiLink haxeSpaceError Error
|
407
|
+
HaxeHiLink haxeCondIf PreCondit
|
408
|
+
HaxeHiLink haxeCondElseIf PreCondit
|
409
|
+
HaxeHiLink haxeCondElse PreProc
|
410
|
+
HaxeHiLink haxeCondEnd PreProc
|
411
|
+
|
412
|
+
HaxeHiLink haxeCondError Error
|
413
|
+
|
414
|
+
HaxeHiLink haxeFlashTop PreProc
|
415
|
+
HaxeHiLink haxeFlashInner Macro
|
416
|
+
HaxeHiLink haxeFlashFinal Define
|
417
|
+
HaxeHiLink haxeFlash9Final Define
|
418
|
+
|
419
|
+
HaxeHiLink haxeOptionalVars Identifier
|
420
|
+
endif
|
421
|
+
|
422
|
+
delcommand HaxeHiLink
|
423
|
+
let b:current_syntax = "haxe"
|
424
|
+
if main_syntax == 'haxe'
|
425
|
+
unlet main_syntax
|
426
|
+
endif
|
427
|
+
let b:spell_options="contained"
|