vim

changeset 10:32e24bf7768a

action script .as, Flex .mxml, Scheme .scm
author Luciano Pacheco <lucmult@gmail.com>
date Sat Aug 22 22:59:26 2009 -0300 (12 months ago)
parents 524cb4b759dd
children 6a9d3b6d3f76
files .vimrc syntax/actionscript.vim syntax/actionscript2.vim syntax/mxml.vim
line diff
     1.1 --- a/.vimrc	Fri Jul 31 18:23:11 2009 -0300
     1.2 +++ b/.vimrc	Sat Aug 22 22:59:26 2009 -0300
     1.3 @@ -102,6 +102,9 @@
     1.4  au FileType rest syn on
     1.5  au FileType rest set syntax=rest
     1.6  
     1.7 +au BufNewFile,BufRead *.mxml set filetype=mxml
     1.8 +au BufNewFile,BufRead *.as set filetype=actionscript
     1.9 +
    1.10  if has("gui_macvim")
    1.11  	let macvim_hig_shift_movement = 1
    1.12  	set transparency=0
    1.13 @@ -165,9 +168,11 @@
    1.14  set smarttab
    1.15  " Bind <f2> key to running the python interpreter on the currently active
    1.16  " file.  (curtesy of Steve Howell from email dated 1 Feb 2006).
    1.17 -map <F2> :w\|!python -i %<cr>
    1.18 +autocmd FileType python map <F2> :w\|!python -i %<cr>
    1.19  "autocmd VimEnter * source ~/.vim/snipper/snipper.vim
    1.20 -map <F3> :w\|!/opt/local/bin/python2.5 -i %<cr>
    1.21 +autocmd FileType python map <F3> :w\|!/opt/local/bin/python2.5 -i %<cr>
    1.22 +
    1.23 +autocmd FileType scheme map <F2> :w\|!csi -sx %<cr>
    1.24  
    1.25  "if has("autocmd") 
    1.26  "autocmd FileType python set complete+=k/Users/lucianopacheco/.vim/pydiction-0.5/pydiction isk+=.,( 
     2.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     2.2 +++ b/syntax/actionscript.vim	Sat Aug 22 22:59:26 2009 -0300
     2.3 @@ -0,0 +1,167 @@
     2.4 +" Vim syntax file
     2.5 +" Language:	actionScript
     2.6 +" Maintainer:	Abdul Qabiz (mail at abdulqabiz.com)
     2.7 +" 		Author and previous maintainer:
     2.8 +" 		Igor Dvorsky <amigo@modesite.net>
     2.9 +" URL:		http://www.abdulqabiz.com/files/vim/actionscript.vim
    2.10 +" Original URL: http://www.modesite.net/vim/actionscript.vim
    2.11 +" Last Change:	2006 Jun 20
    2.12 +" Updated to support AS 2.0 2004 Mar 12 by Richard Leider  (richard@appliedrhetoric.com)
    2.13 +" Updated to support new AS 2.0 Flash 8 Language Elements 2005 September 29 (richard@appliedrhetoric.com)
    2.14 +" Updated to support new AS 3.0 Language Elements 2006 June 20 by Abdul Qabiz (mail at abdulqabiz.com)
    2.15 +
    2.16 +
    2.17 +" For version 5.x: Clear all syntax items
    2.18 +" For version 6.x: Quit when a syntax file was already loaded
    2.19 +if !exists("main_syntax")
    2.20 +  if version < 600
    2.21 +    syntax clear
    2.22 +  elseif exists("b:current_syntax")
    2.23 +  finish
    2.24 +endif
    2.25 +  let main_syntax = 'actionscript'
    2.26 +endif
    2.27 +
    2.28 +" based on "JavaScript" VIM syntax by Claudio Fleiner <claudio@fleiner.com>
    2.29 +
    2.30 +syn case ignore
    2.31 +syn match   actionScriptLineComment			"\/\/.*$"
    2.32 +syn match   actionScriptCommentSkip			"^[ \t]*\*\($\|[ \t]\+\)"
    2.33 +syn region  actionScriptCommentString			start=+"+  skip=+\\\\\|\\"+  end=+"+ end=+\*/+me=s-1,he=s-1 contains=actionScriptSpecial,actionScriptCommentSkip,@htmlPreproc
    2.34 +syn region  actionScriptComment2String			start=+"+  skip=+\\\\\|\\"+  end=+$\|"+  contains=actionScriptSpecial,@htmlPreproc
    2.35 +syn region  actionScriptComment				start="/\*"  end="\*/" contains=actionScriptCommentString,actionScriptCharacter,actionScriptNumber
    2.36 +syn match   actionScriptSpecial				"\\\d\d\d\|\\."
    2.37 +syn region  actionScriptStringD				start=+"+  skip=+\\\\\|\\"+  end=+"+  contains=actionScriptSpecial,@htmlPreproc
    2.38 +syn region  actionScriptStringS				start=+'+  skip=+\\\\\|\\'+  end=+'+  contains=actionScriptSpecial,@htmlPreproc
    2.39 +syn match   actionScriptSpecialCharacter		"'\\.'"
    2.40 +syn match   actionScriptNumber				"-\=\<\d\+L\=\>\|0[xX][0-9a-fA-F]\+\>"
    2.41 +syn keyword actionScriptConditional			if else and or not
    2.42 +syn keyword actionScriptRepeat				do while for in
    2.43 +syn keyword actionScriptCase				break continue switch case default
    2.44 +syn keyword actionScriptConstructor			new
    2.45 +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
    2.46 +syn keyword actionScriptStatement			return with
    2.47 +syn keyword actionScriptFunction			function on onClipEvent
    2.48 +syn keyword actionScriptValue				true false undefined null NaN void
    2.49 +syn keyword actionScriptArray				concat join length pop push reverse shift slice sort sortOn splice toString unshift
    2.50 +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 
    2.51 +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
    2.52 +syn keyword actionScriptNumberObj			MAX_VALUE MIN_VALUE NaN NEGATIVE_INFINITY POSITIVE_INFINITY valueOf 
    2.53 +syn keyword actionScriptObject				addProperty __proto__ registerClass toString unwatch valueOf watch
    2.54 +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
    2.55 +syn keyword actionScriptColor				getRGB getTransform setRGB setTransform
    2.56 +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
    2.57 +syn keyword actionScriptMouse				hide onMouseDown onMouseUp onMouseMove show onMouseWheel
    2.58 +syn keyword actionScriptSelection			getBeginIndex getCaretIndex getEndIndex getFocus setFocus setSelection	
    2.59 +syn keyword actionScriptSound				attachSound duration getBytesLoaded getBytesTotal getPan getTransform getVolume loadSound onLoad onSoundComplete position setPan setTransform setVolume start stop onID3
    2.60 +syn keyword actionScriptStage				align height onResize scaleMode width
    2.61 +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
    2.62 +syn keyword actionScriptTextFormat			align blockIndent bold bullet color font getTextExtent indent italic leading leftMargin rightMargin size tabStops target underline url	
    2.63 +syn keyword actionScriptCommunication		contentType getBytesLoaded getBytesTotal load loaded onLoad send sendAndLoad toString	addRequestHeader fscommand MMExecute
    2.64 +syn keyword actionScriptXMLSocket			close connect onClose onConnect onData onXML
    2.65 +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
    2.66 +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
    2.67 +syn match   actionScriptBraces				"([{}])"
    2.68 +syn keyword actionScriptException 			try catch finally throw name message
    2.69 +syn keyword actionScriptXML					attributes childNodes cloneNode createElement createTextNode docTypeDecl status firstChild hasChildNodes lastChild insertBefore nextSibling nodeName nodeType nodeValue parentNode parseXML previousSibling removeNode xmlDecl ignoreWhite
    2.70 +syn keyword actionScriptArrayConstant 		CASEINSENSITIVE DESCENDING UNIQUESORT RETURNINDEXEDARRAY NUMERIC
    2.71 +syn keyword actionScriptStringConstant 		newline
    2.72 +syn keyword actionScriptEventConstant 		press release releaseOutside rollOver rollOut dragOver dragOut enterFrame unload mouseMove mouseDown mouseUp keyDown keyUp data
    2.73 +syn keyword actionScriptTextSnapshot 		getCount setSelected getSelected getText getSelectedText hitTestTextNearPos findText setSelectColor
    2.74 +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
    2.75 +syn keyword actionScriptAS2 				class extends public private static interface implements import dynamic
    2.76 +syn keyword actionScriptStyleSheet 			parse parseCSS getStyle setStyle getStyleNames
    2.77 +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
    2.78 +syn keyword flash8Constants  				ALPHANUMERIC_FULL ALPHANUMERIC_HALF CHINESE JAPANESE_HIRAGANA JAPANESE_KATAKANA_FULL JAPANESE_KATAKANA_HALF KOREAN UNKNOWN
    2.79 +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
    2.80 +syn keyword flash8Classes 				BevelFilter BitmapData BitmapFilter BlurFilter ColorMatrixFilter ColorTransform ConvolutionFilter DisplacementMapFilter DropShadowFilter ExternalInterface FileReference FileReferenceList GlowFilter GradientBevelFilter GradientGlowFilter Matrix Point Rectangle TextRenderer
    2.81 +syn keyword actionScriptInclude #include #initClip #endInitClip include
    2.82 +syn keyword actionScriptAS3 				class extends public private static interface implements import dynamic protected
    2.83 +syn keyword flash9Constants				Infinity -Infinity NaN undefined
    2.84 +syn keyword flash9Functions				Array Boolean decodeURI decodeURIComponent encodeURI encodeURIComponent escape int isFinite isNaN isXMLName Number Object parseFloat parseInt String trace uint unescape XML XMLList
    2.85 +syn keyword flash9Classes			AbstractEvent AbstractInvoker AbstractMessage AbstractOperation AbstractService AbstractTarget Accessibility AccessibilityProperties AccessPrivileges AccessPrivilegesPrivilege Accordion AccordionHeader AccordionHeaderSkin AcknowledgeMessage ActionEffectInstance ActionScriptVersion ActivatorSkin ActivityEvent AddChild AddChildAction AddChildActionInstance Alert AMFChannel AnimateProperty AnimatePropertyInstance AntiAliasType Application ApplicationControlBar ApplicationDomain AreaChart AreaRenderer AreaSeries AreaSeriesItem AreaSeriesRenderData AreaSet ArgumentError arguments Array ArrayCollection ArrayUtil AssociationDefinition AsyncMessage AsyncRequest AsyncToken AVM1Movie AxisBase AxisLabel AxisLabelSet AxisRenderer Back BarChart BarSeries BarSeriesItem BarSeriesRenderData BarSet BaseListData BevelFilter BindingUtils Bitmap BitmapAsset BitmapData BitmapDataChannel BitmapFill BitmapFilter BitmapFilterQuality BitmapFilterType BlendMode Blur BlurFilter BlurInstance Boolean Border Bounce BoundedValue Box BoxDirection BoxItemRenderer BubbleChart BubbleSeries BubbleSeriesItem BubbleSeriesRenderData Button ButtonAsset ButtonBar ButtonBarButtonSkin ButtonLabelPlacement ButtonSkin ByteArray CalendarLayoutChangeEvent Camera CandlestickChart CandlestickItemRenderer CandlestickSeries Canvas Capabilities CapsStyle CartesianChart CartesianTransform CategoryAxis ChangeWatcher Channel ChannelError ChannelEvent ChannelFaultEvent ChannelSet ChartBase ChartElement ChartItem ChartItemEvent ChartLabel ChartState CheckBox CheckBoxIcon ChildExistenceChangedEvent CircleItemRenderer Circular Class ClassFactory ClientInputError CloseEvent CollectionEvent CollectionEventKind CollectionViewError ColorMatrixFilter ColorPicker ColorPickerEvent ColorPickerSkin ColorTransform ColorUtil ColumnChart ColumnSeries ColumnSeriesItem ColumnSeriesRenderData ColumnSet ComboBase ComboBox ComboBoxArrowSkin CommandMessage ComponentDescriptor CompositeEffect CompositeEffectInstance ConcreteDataService Conflict ConflictDetector Conflicts Consumer Container ContainerCreationPolicy ContextMenu ContextMenuBuiltInItems ContextMenuEvent ContextMenuItem ControlBar ConvolutionFilter CreditCardValidator CreditCardValidatorCardType CrossItemRenderer CSMSettings CSSStyleDeclaration Cubic CuePointEvent CuePointManager CurrencyFormatter CurrencyValidator CurrencyValidatorAlignSymbol CursorBookmark CursorError CursorEvent CursorManager CursorManagerPriority DataAssociationMessage DataConflictEvent DataConsumer DataDescription DataErrorMessage DataEvent DataGrid DataGridBase DataGridColumn DataGridColumnDropIndicator DataGridColumnResizeSkin DataGridDragProxy DataGridEvent DataGridEventReason DataGridHeaderSeparator DataGridItemRenderer DataGridListData DataGridSortArrow DataList DataListError DataService DataServiceError DataServiceFaultEvent DataStore DataTip DataTransform Date DateBase DateChooser DateChooserEvent DateChooserEventDetail DateChooserIndicator DateChooserMonthArrowSkin DateChooserYearArrowSkin DateField DateFormatter DateTimeAxis DateValidator DefaultDataDescriptor DeferredInstanceFromClass DeferredInstanceFromFunction DefinitionError DiamondItemRenderer Dictionary DirectHTTPChannel DisplacementMapFilter DisplacementMapFilterMode DisplayObject DisplayObjectContainer Dissolve DissolveInstance DividedBox DividerEvent DownloadProgressBar DragEvent DragManager DragSource DropdownEvent DropShadowFilter DualStyleObject DynamicEvent EdgeMetrics Effect EffectEvent EffectInstance EffectManager EffectTargetFilter Elastic EmailValidator EncodingError Endian EOFError Error ErrorEvent ErrorMessage EvalError Event EventDispatcher EventPhase EventPriority Exponential ExternalInterface Fade FadeInstance Fault FaultEvent FileFilter FileReference FileReferenceList FlexBitmap FlexEvent FlexMovieClip FlexPrintJob FlexPrintJobScaleType FlexShape FlexSimpleButton FlexSprite FlexTextField FocusEvent FocusManager Font FontStyle FontType Form Formatter FormHeading FormItem FormItemDirection FormItemLabel FrameLabel Function Glow GlowFilter GlowInstance GradientBase GradientBevelFilter GradientEntry GradientGlowFilter GradientType Graphics Grid GridFitType GridItem GridLines GridRow HaloBorder HaloColors HaloFocusRect HBox HDividedBox HeaderEvent HistoryManager HitData HLOCChart HLOCItemRenderer HLOCSeries HLOCSeriesBase HLOCSeriesItem HLOCSeriesRenderData HorizontalList HRule HScrollBar HSlider HTTPChannel HTTPRequestMessage HTTPService HTTPService HTTPStatusEvent IAccessPrivileges IAutomationObject IAutomationObjectContainer IAxis IBar IBitmapDrawable IChangeObject IChartElement IChildList ICollectionView IColumn IContainer ID3Info IDataInput IDataOutput IDataRenderer IDeferredInstance IDeferredInstantiationUIComponent IDropInListItemRenderer IDynamicPropertyOutput IDynamicPropertyWriter IEventDispatcher IExternalizable IFactory IFill IFlexAsset IFlexDisplayObject IFocusManager IFocusManagerComponent IFocusManagerContainer IFocusManagerGroup IHistoryManagerClient IIMESupport IInvalidating ILayoutManagerClient IList IListItemRenderer IllegalOperationError ILogger ILoggingTarget Image IManaged IME IMEConversionMode IMEEvent IMenuDataDescriptor IMenuItemRenderer IMessage IMXMLObject IMXMLSupport IndexChangedEvent InstanceCache int InteractiveObject InterpolationMethod InvalidCategoryError InvalidChannelError InvalidDestinationError InvalidFilterError InvalidSWFError IOError IOErrorEvent IOverride IPreloaderDisplay IPropertyChangeNotifier IRawChildrenContainer IRepeater IRepeaterClient IResponder Iris IrisInstance ISimpleStyleClient IStackable IStroke IStyleClient ISystemManager ItemClickEvent ItemPendingError ItemResponder IToolTip IToolTipManagerClient ITreeDataDescriptor IUIComponent IUID IViewCursor JointStyle Keyboard KeyboardEvent KeyLocation Label LayoutManager Legend LegendData LegendItem LegendMouseEvent Linear LinearAxis LinearGradient LinearGradientStroke LineChart LineFormattedTarget LineRenderer LineScaleMode LineSeries LineSeriesItem LineSeriesRenderData LineSeriesSegment LinkBar LinkButton LinkButtonSkin LinkSeparator List ListBase ListBaseSeekPending ListBaseSelectionData ListCollectionView ListData ListDropIndicator ListEvent ListEventReason ListItemDragProxy ListItemRenderer ListItemSelectEvent ListRowInfo Loader LoaderConfig LoaderContext LoaderInfo LoadEvent LocalConnection Locale Log LogAxis LogEvent LogEventLevel LogLogger MaskEffect MaskEffectInstance Math Matrix MBeanAttributeInfo MBeanFeatureInfo MBeanInfo MBeanOperationInfo MBeanParameterInfo MemoryError Menu MenuBar MenuBarBackgroundSkin MenuBarItem MenuEvent MenuItemRenderer MessageAckEvent MessageAgent MessageCacheItem MessageEvent MessageFaultEvent MessagePersister MessagePersisterEvent MessageResponder MessageSerializationError MessageStore MessageStoreEvent MessagingError Metadata MetadataEvent Microphone MiniDebugTarget MorphShape Mouse MouseEvent Move MoveEvent MoveInstance MovieClip MovieClipAsset MovieClipLoaderAsset Namespace NavBar NetConnection NetConnectionChannel NetStatusEvent NetStream NoChannelAvailableError NoDataAvailableError NoSuchChannelError Number NumberBase NumberBaseRoundType NumberFormatter NumberValidator NumericAxis NumericStepper NumericStepperDownSkin NumericStepperEvent NumericStepperUpSkin Object ObjectEncoding ObjectName ObjectProxy ObjectUtil Operation Operation Operation Operation PagedMessage Panel Parallel ParallelInstance Pause PauseInstance PhoneFormatter PhoneNumberValidator PieChart PieSeries PieSeriesItem PieSeriesRenderData PixelSnapping PlotChart PlotSeries PlotSeriesItem PlotSeriesRenderData Point PolarChart PolarTransform PollingChannel PopUpButton PopUpButtonSkin PopUpIcon PopUpManager PopUpManagerChildList PopUpMenuButton PopUpMenuIcon Preloader PrintDataGrid PrintJob PrintJobOptions PrintJobOrientation PriorityQueue Producer ProgrammaticSkin ProgressBar ProgressBarDirection ProgressBarLabelPlacement ProgressBarMode ProgressBarSkin ProgressEvent ProgressIndeterminateSkin ProgressTrackSkin PropertyChangeEvent PropertyChangeEventKind PropertyChanges Proxy QName Quadratic Quartic Quintic RadialGradient RadioButton RadioButtonGroup RadioButtonIcon RangeError Rectangle RectangularBorder RectangularDropShadow ReferenceError RegExp RegExpValidationResult RegExpValidator RemoteObject RemoteObject RemotingMessage RemoveChild RemoveChildAction RemoveChildActionInstance RenderData Repeater Resize ResizeEvent ResizeInstance ResourceBundle Responder ResultEvent RichTextEditor Rotate RotateInstance RoundedRectangle RPCMessage RSLEvent RTMPChannel Scene ScriptTimeoutError ScrollArrowSkin ScrollBar ScrollBarDirection ScrollControlBase ScrollEvent ScrollEventDetail ScrollEventDirection ScrollPolicy ScrollThumb ScrollThumbSkin ScrollTrackSkin SecureAMFChannel Security SecurityDomain SecurityError SecurityErrorEvent SecurityPanel Sequence SequencedMessage SequenceInstance Series SeriesEffect SeriesEffectInstance SeriesInterpolate SeriesInterpolateInstance SeriesSlide SeriesSlideInstance SeriesZoom SeriesZoomInstance SetEventHandler SetProperty SetPropertyAction SetPropertyActionInstance SetStyle SetStyleAction SetStyleActionInstance ShadowBoxItemRenderer ShadowLineRenderer Shape SharedObject SharedObjectFlushStatus SimpleButton SimpleXMLDecoder SimpleXMLEncoder Sine Slider SliderDataTip SliderDirection SliderEvent SliderEventClickTarget SliderHighlightSkin SliderLabel SliderThumb SliderThumbSkin SliderTrackSkin SOAPHeader SOAPMessage SocialSecurityValidator Socket SolidColor Sort SortError SortField Sound SoundAsset SoundChannel SoundEffect SoundEffectInstance SoundLoaderContext SoundMixer SoundTransform Spacer SpreadMethod Sprite SpriteAsset StackedSeries StackOverflowError Stage StageAlign StageQuality StageScaleMode State StateChangeEvent StaticText StatusEvent String StringUtil StringValidator Stroke StyleManager StyleSheet SwatchPanelSkin SwatchSkin SWFLoader SWFVersion SwitchSymbolFormatter SyncEvent SyntaxError System SystemManager TabBar TabNavigator TabSkin Text TextArea TextColorType TextDisplayMode TextEvent TextField TextFieldAsset TextFieldAutoSize TextFieldType TextFormat TextFormatAlign TextInput TextLineMetrics TextRange TextRenderer TextSnapshot Tile TileBase TileBaseDirection TileDirection TileListItemRenderer Timer TimerEvent TitleBackground TitleWindow ToggleButtonBar ToolTip ToolTipBorder ToolTipManager TraceTarget Transform Transition Tree TreeEvent TreeItemRenderer TreeListData TriangleItemRenderer Tween TweenEffect TweenEffectInstance TweenEvent TypeError UIComponent UIComponentCachePolicy UIComponentDescriptor UIDUtil uint UITextField UITextFormat UnresolvedConflictsError UnresolvedConflictsEvent UpdateCollectionMessage UpdateCollectionRange URIError URLLoader URLLoaderDataFormat URLRequest URLRequestHeader URLRequestMethod URLStream URLUtil URLVariables ValidationResult ValidationResultEvent Validator VBox VDividedBox VerifyError Video VideoDisplay VideoError VideoEvent ViewStack VRule VScrollBar VSlider WeakFunctionClosure WeakMethodClosure WebService WebService WedgeItemRenderer WipeDown WipeDownInstance WipeLeft WipeLeftInstance WipeRight WipeRightInstance WipeUp WipeUpInstance WSDLError XML XMLDocument XMLList XMLListCollection XMLNode XMLNodeType XMLUtil ZipCodeFormatter ZipCodeValidatorDomainType Zoom ZoomInstance	
    2.86 +
    2.87 +" catch errors caused by wrong parenthesis
    2.88 +syn match   actionScriptInParen     contained "[{}]"
    2.89 +syn region  actionScriptParen       transparent start="(" end=")" contains=actionScriptParen,actionScript.*
    2.90 +syn match   actionScrParenError  ")"
    2.91 +
    2.92 +if main_syntax == "actionscript"
    2.93 +  syn sync ccomment actionScriptComment
    2.94 +endif
    2.95 +
    2.96 +" Define the default highlighting.
    2.97 +" For version 5.7 and earlier: only when not done already
    2.98 +" For version 5.8 and later: only when an item doesn't have highlighting yet
    2.99 +if version >= 508 || !exists("did_actionscript_syn_inits")
   2.100 +  if version < 508
   2.101 +    let did_actionscript_syn_inits = 1
   2.102 +    command -nargs=+ HiLink hi link <args>
   2.103 +  else
   2.104 +    command -nargs=+ HiLink hi def link <args>
   2.105 +  endif
   2.106 +  HiLink actionScriptComment		Comment
   2.107 +  HiLink actionScriptLineComment	Comment
   2.108 +  HiLink actionScriptSpecial		Special
   2.109 +  HiLink actionScriptStringS		String
   2.110 +  HiLink actionScriptStringD		String
   2.111 +  HiLink actionScriptCharacter		Character
   2.112 +  HiLink actionScriptSpecialCharacter	actionScriptSpecial
   2.113 +  HiLink actionScriptNumber		actionScriptValue
   2.114 +  HiLink actionScriptBraces		Function
   2.115 +  HiLink actionScriptError		Error
   2.116 +  HiLink actionScrParenError		actionScriptError
   2.117 +  HiLink actionScriptInParen		actionScriptError
   2.118 +  HiLink actionScriptConditional	Conditional
   2.119 +  HiLink actionScriptRepeat		Repeat
   2.120 +  HiLink actionScriptCase		Label
   2.121 +  HiLink actionScriptConstructor	Operator
   2.122 +  HiLink actionScriptObjects		Operator
   2.123 +  HiLink actionScriptStatement		Statement
   2.124 +  HiLink actionScriptFunction		Function
   2.125 +  HiLink actionScriptValue		Boolean
   2.126 +  HiLink actionScriptArray		Type
   2.127 +  HiLink actionScriptDate		Type
   2.128 +  HiLink actionScriptMath		Type
   2.129 +  HiLink actionScriptNumberObj		Type
   2.130 +  HiLink actionScriptObject		Function
   2.131 +  HiLink actionScriptString		Type
   2.132 +  HiLink actionScriptColor		Type
   2.133 +  HiLink actionScriptKey		Type
   2.134 +  HiLink actionScriptMouse		Type
   2.135 +  HiLink actionScriptSelection		Type
   2.136 +  HiLink actionScriptSound		Type
   2.137 +  HiLink actionScriptStage		Type
   2.138 +  HiLink actionScriptSystem		Type
   2.139 +  HiLink actionScriptTextFormat		Type
   2.140 +  HiLink actionScriptCommunication	Type
   2.141 +  HiLink actionScriptXMLSocket		Type
   2.142 +  HiLink actionScriptTextField		Type
   2.143 +  HiLink actionScriptMethods		Statement
   2.144 +  HiLink actionScriptException		Exception
   2.145 +  HiLink actionScriptXML			Type
   2.146 +  HiLink actionScriptArrayConstant	Constant
   2.147 +  HiLink actionScriptStringConstant	Constant
   2.148 +  HiLink actionScriptEventConstant	Constant
   2.149 +  HiLink actionScriptTextSnapshot	Type
   2.150 +  HiLink actionScriptID3			Type
   2.151 +  HiLink actionScriptAS2			Function
   2.152 +  HiLink actionScriptStyleSheet		Type
   2.153 +  HiLink flash8Constants		Constant
   2.154 +  HiLink flash8Functions		Function
   2.155 +  HiLink flash8Properties		Type
   2.156 +  HiLink flash8Classes 			Type
   2.157 +  HiLink actionScriptInclude		Include
   2.158 +  HiLink flash9Classes			Type
   2.159 +  HiLink flash9Constants		Function
   2.160 +  HiLink flash9Functions		Function
   2.161 +  HiLink actionscriptAS3		Function 
   2.162 +  delcommand HiLink
   2.163 +endif
   2.164 +
   2.165 +let b:current_syntax = "actionscript"
   2.166 +if main_syntax == 'actionscript'
   2.167 +  unlet main_syntax
   2.168 +endif
   2.169 +
   2.170 +" vim: ts=8
     3.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     3.2 +++ b/syntax/actionscript2.vim	Sat Aug 22 22:59:26 2009 -0300
     3.3 @@ -0,0 +1,154 @@
     3.4 +" Vim syntax file
     3.5 +" Language:	actionScript
     3.6 +" Maintainer:	Igor Dvorsky <amigo@modesite.net>
     3.7 +" URL:		http://www.modesite.net/vim/actionscript.vim
     3.8 +" Last Change:	2002 Sep 12
     3.9 +" Updated to support AS 2.0 2004 Mar 12 by Richard Leider  (richard@appliedrhetoric.com)
    3.10 +" Updated to support new AS 2.0 Flash 8 Language Elements 2005 September 29 (richard@appliedrhetoric.com)
    3.11 +
    3.12 +
    3.13 +" For version 5.x: Clear all syntax items
    3.14 +" For version 6.x: Quit when a syntax file was already loaded
    3.15 +if !exists("main_syntax")
    3.16 +  if version < 600
    3.17 +    syntax clear
    3.18 +  elseif exists("b:current_syntax")
    3.19 +  finish
    3.20 +endif
    3.21 +  let main_syntax = 'actionscript'
    3.22 +endif
    3.23 +
    3.24 +" based on "JavaScript" VIM syntax by Claudio Fleiner <claudio@fleiner.com>
    3.25 +
    3.26 +syn case ignore
    3.27 +syn match   actionScriptLineComment			"\/\/.*$"
    3.28 +syn match   actionScriptCommentSkip			"^[ \t]*\*\($\|[ \t]\+\)"
    3.29 +syn region  actionScriptCommentString			start=+"+  skip=+\\\\\|\\"+  end=+"+ end=+\*/+me=s-1,he=s-1 contains=actionScriptSpecial,actionScriptCommentSkip,@htmlPreproc
    3.30 +syn region  actionScriptComment2String			start=+"+  skip=+\\\\\|\\"+  end=+$\|"+  contains=actionScriptSpecial,@htmlPreproc
    3.31 +syn region  actionScriptComment				start="/\*"  end="\*/" contains=actionScriptCommentString,actionScriptCharacter,actionScriptNumber
    3.32 +syn match   actionScriptSpecial				"\\\d\d\d\|\\."
    3.33 +syn region  actionScriptStringD				start=+"+  skip=+\\\\\|\\"+  end=+"+  contains=actionScriptSpecial,@htmlPreproc
    3.34 +syn region  actionScriptStringS				start=+'+  skip=+\\\\\|\\'+  end=+'+  contains=actionScriptSpecial,@htmlPreproc
    3.35 +syn match   actionScriptSpecialCharacter		"'\\.'"
    3.36 +syn match   actionScriptNumber				"-\=\<\d\+L\=\>\|0[xX][0-9a-fA-F]\+\>"
    3.37 +syn keyword actionScriptConditional			if else and or not
    3.38 +syn keyword actionScriptRepeat				do while for in
    3.39 +syn keyword actionScriptCase				break continue switch case default
    3.40 +syn keyword actionScriptConstructor			new
    3.41 +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
    3.42 +syn keyword actionScriptStatement			return with
    3.43 +syn keyword actionScriptFunction			function on onClipEvent
    3.44 +syn keyword actionScriptValue				true false undefined null NaN void
    3.45 +syn keyword actionScriptArray				concat join length pop push reverse shift slice sort sortOn splice toString unshift
    3.46 +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 
    3.47 +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
    3.48 +syn keyword actionScriptNumberObj			MAX_VALUE MIN_VALUE NaN NEGATIVE_INFINITY POSITIVE_INFINITY valueOf 
    3.49 +syn keyword actionScriptObject				addProperty __proto__ registerClass toString unwatch valueOf watch
    3.50 +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
    3.51 +syn keyword actionScriptColor				getRGB getTransform setRGB setTransform
    3.52 +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
    3.53 +syn keyword actionScriptMouse				hide onMouseDown onMouseUp onMouseMove show onMouseWheel
    3.54 +syn keyword actionScriptSelection			getBeginIndex getCaretIndex getEndIndex getFocus setFocus setSelection	
    3.55 +syn keyword actionScriptSound				attachSound duration getBytesLoaded getBytesTotal getPan getTransform getVolume loadSound onLoad onSoundComplete position setPan setTransform setVolume start stop onID3
    3.56 +syn keyword actionScriptStage				align height onResize scaleMode width
    3.57 +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
    3.58 +syn keyword actionScriptTextFormat			align blockIndent bold bullet color font getTextExtent indent italic leading leftMargin rightMargin size tabStops target underline url	
    3.59 +syn keyword actionScriptCommunication		contentType getBytesLoaded getBytesTotal load loaded onLoad send sendAndLoad toString	addRequestHeader fscommand MMExecute
    3.60 +syn keyword actionScriptXMLSocket			close connect onClose onConnect onData onXML
    3.61 +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
    3.62 +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
    3.63 +syn match   actionScriptBraces				"([{}])"
    3.64 +syn keyword actionScriptException 			try catch finally throw name message
    3.65 +syn keyword actionScriptXML					attributes childNodes cloneNode createElement createTextNode docTypeDecl status firstChild hasChildNodes lastChild insertBefore nextSibling nodeName nodeType nodeValue parentNode parseXML previousSibling removeNode xmlDecl ignoreWhite
    3.66 +syn keyword actionScriptArrayConstant 		CASEINSENSITIVE DESCENDING UNIQUESORT RETURNINDEXEDARRAY NUMERIC
    3.67 +syn keyword actionScriptStringConstant 		newline
    3.68 +syn keyword actionScriptEventConstant 		press release releaseOutside rollOver rollOut dragOver dragOut enterFrame unload mouseMove mouseDown mouseUp keyDown keyUp data
    3.69 +syn keyword actionScriptTextSnapshot 		getCount setSelected getSelected getText getSelectedText hitTestTextNearPos findText setSelectColor
    3.70 +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
    3.71 +syn keyword actionScriptAS2 				class extends public private static interface implements import dynamic
    3.72 +syn keyword actionScriptStyleSheet 			parse parseCSS getStyle setStyle getStyleNames
    3.73 +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
    3.74 +syn keyword flash8Constants  				ALPHANUMERIC_FULL ALPHANUMERIC_HALF CHINESE JAPANESE_HIRAGANA JAPANESE_KATAKANA_FULL JAPANESE_KATAKANA_HALF KOREAN UNKNOWN
    3.75 +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
    3.76 +syn keyword flash8Classes 				BevelFilter BitmapData BitmapFilter BlurFilter ColorMatrixFilter ColorTransform ConvolutionFilter DisplacementMapFilter DropShadowFilter ExternalInterface FileReference FileReferenceList GlowFilter GradientBevelFilter GradientGlowFilter Matrix Point Rectangle TextRenderer
    3.77 +syn keyword actionScriptInclude #include #initClip #endInitClip
    3.78 +" catch errors caused by wrong parenthesis
    3.79 +syn match   actionScriptInParen     contained "[{}]"
    3.80 +syn region  actionScriptParen       transparent start="(" end=")" contains=actionScriptParen,actionScript.*
    3.81 +syn match   actionScrParenError  ")"
    3.82 +
    3.83 +if main_syntax == "actionscript"
    3.84 +  syn sync ccomment actionScriptComment
    3.85 +endif
    3.86 +
    3.87 +" Define the default highlighting.
    3.88 +" For version 5.7 and earlier: only when not done already
    3.89 +" For version 5.8 and later: only when an item doesn't have highlighting yet
    3.90 +if version >= 508 || !exists("did_actionscript_syn_inits")
    3.91 +  if version < 508
    3.92 +    let did_actionscript_syn_inits = 1
    3.93 +    command -nargs=+ HiLink hi link <args>
    3.94 +  else
    3.95 +    command -nargs=+ HiLink hi def link <args>
    3.96 +  endif
    3.97 +  HiLink actionScriptComment		Comment
    3.98 +  HiLink actionScriptLineComment	Comment
    3.99 +  HiLink actionScriptSpecial		Special
   3.100 +  HiLink actionScriptStringS		String
   3.101 +  HiLink actionScriptStringD		String
   3.102 +  HiLink actionScriptCharacter		Character
   3.103 +  HiLink actionScriptSpecialCharacter	actionScriptSpecial
   3.104 +  HiLink actionScriptNumber		actionScriptValue
   3.105 +  HiLink actionScriptBraces		Function
   3.106 +  HiLink actionScriptError		Error
   3.107 +  HiLink actionScrParenError		actionScriptError
   3.108 +  HiLink actionScriptInParen		actionScriptError
   3.109 +  HiLink actionScriptConditional	Conditional
   3.110 +  HiLink actionScriptRepeat		Repeat
   3.111 +  HiLink actionScriptCase		Label
   3.112 +  HiLink actionScriptConstructor	Operator
   3.113 +  HiLink actionScriptObjects		Operator
   3.114 +  HiLink actionScriptStatement		Statement
   3.115 +  HiLink actionScriptFunction		Function
   3.116 +  HiLink actionScriptValue		Boolean
   3.117 +  HiLink actionScriptArray		Type
   3.118 +  HiLink actionScriptDate		Type
   3.119 +  HiLink actionScriptMath		Type
   3.120 +  HiLink actionScriptNumberObj		Type
   3.121 +  HiLink actionScriptObject		Function
   3.122 +  HiLink actionScriptString		Type
   3.123 +  HiLink actionScriptColor		Type
   3.124 +  HiLink actionScriptKey		Type
   3.125 +  HiLink actionScriptMouse		Type
   3.126 +  HiLink actionScriptSelection		Type
   3.127 +  HiLink actionScriptSound		Type
   3.128 +  HiLink actionScriptStage		Type
   3.129 +  HiLink actionScriptSystem		Type
   3.130 +  HiLink actionScriptTextFormat		Type
   3.131 +  HiLink actionScriptCommunication	Type
   3.132 +  HiLink actionScriptXMLSocket		Type
   3.133 +  HiLink actionScriptTextField		Type
   3.134 +  HiLink actionScriptMethods		Statement
   3.135 +  HiLink actionScriptException		Exception
   3.136 +  HiLink actionScriptXML			Type
   3.137 +  HiLink actionScriptArrayConstant	Constant
   3.138 +  HiLink actionScriptStringConstant	Constant
   3.139 +  HiLink actionScriptEventConstant	Constant
   3.140 +  HiLink actionScriptTextSnapshot	Type
   3.141 +  HiLink actionScriptID3			Type
   3.142 +  HiLink actionScriptAS2			Function
   3.143 +  HiLink actionScriptStyleSheet		Type
   3.144 +  HiLink flash8Constants		Constant
   3.145 +  HiLink flash8Functions		Function
   3.146 +  HiLink flash8Properties		Type
   3.147 +  HiLink flash8Classes 			Type
   3.148 +  HiLink actionScriptInclude		Include
   3.149 +  delcommand HiLink
   3.150 +endif
   3.151 +
   3.152 +let b:current_syntax = "actionscript"
   3.153 +if main_syntax == 'actionscript'
   3.154 +  unlet main_syntax
   3.155 +endif
   3.156 +
   3.157 +" vim: ts=8
     4.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     4.2 +++ b/syntax/mxml.vim	Sat Aug 22 22:59:26 2009 -0300
     4.3 @@ -0,0 +1,395 @@
     4.4 +" Vim syntax file
     4.5 +" Language:	MXML
     4.6 +" Maintainer:	Abdul Qabiz <mail@abdulqabiz.com>
     4.7 +" URL:		http://www.abdulqabiz.com/files/vim/mxml.vim
     4.8 +"		Author and previous maintainer:
     4.9 +"		Johannes Zellner <johannes@zellner.org>
    4.10 +"		Paul Siegmann <pauls@euronet.nl>
    4.11 +" Last Change:	Mi, 20 Jun 2006 14:40:09 IST
    4.12 +" Filenames:	*.mxml
    4.13 +" $Id: mxml.vim,v 1.0 2006/06/20 14:51:26 aqabiz Exp $
    4.14 +
    4.15 +" CONFIGURATION:
    4.16 +"   syntax folding can be turned on by
    4.17 +"
    4.18 +"      let g:mxml_syntax_folding = 1
    4.19 +"
    4.20 +"   before the syntax file gets loaded (e.g. in ~/.vimrc).
    4.21 +"   This might slow down syntax highlighting significantly,
    4.22 +"   especially for large files.
    4.23 +"
    4.24 +" CREDITS:
    4.25 +"   The original version was derived by Johannes Zellner from
    4.26 +"   Paul Siegmann's xml.vim.
    4.27 +"
    4.28 +" REFERENCES:
    4.29 +"   [1] http://www.w3.org/TR/2000/REC-xml-20001006
    4.30 +"   [2] http://www.w3.org/XML/1998/06/xmlspec-report-19980910.htm
    4.31 +"
    4.32 +"
    4.33 +"   2.3 Common Syntactic Constructs
    4.34 +"   [4]    NameChar    ::=    Letter | Digit | '.' | '-' | '_' | ':' | CombiningChar | Extender
    4.35 +"   [5]    Name        ::=    (Letter | '_' | ':') (NameChar)*
    4.36 +"
    4.37 +" NOTE:
    4.38 +"   1) empty tag delimiters "/>" inside attribute values (strings)
    4.39 +"      confuse syntax highlighting.
    4.40 +"   2) for large files, folding can be pretty slow, especially when
    4.41 +"      loading a file the first time and viewoptions contains 'folds'
    4.42 +"      so that folds of previous sessions are applied.
    4.43 +"      Don't use 'foldmethod=syntax' in this case.
    4.44 +
    4.45 +
    4.46 +" Quit when a syntax file was already loaded
    4.47 +
    4.48 +if !exists("main_syntax")
    4.49 +  if version < 600
    4.50 +    syntax clear
    4.51 +  elseif exists("b:current_syntax")
    4.52 +    finish
    4.53 +  endif
    4.54 +  let main_syntax = 'mxml'
    4.55 +endif
    4.56 +
    4.57 +" don't use standard HiLink, it will not work with included syntax files
    4.58 +if version < 508
    4.59 +  command! -nargs=+ MXMLHiLink hi link <args>
    4.60 +else
    4.61 +  command! -nargs=+ MXMLHiLink hi def link <args>
    4.62 +endif
    4.63 +
    4.64 +let s:mxml_cpo_save = &cpo
    4.65 +set cpo&vim
    4.66 +
    4.67 +syn case match
    4.68 +
    4.69 +" mark illegal characters
    4.70 +syn match xmlError "[<&]"
    4.71 +
    4.72 +" strings (inside tags) aka VALUES
    4.73 +"
    4.74 +" EXAMPLE:
    4.75 +"
    4.76 +" <tag foo.attribute = "value">
    4.77 +"                      ^^^^^^^
    4.78 +syn region  xmlString contained start=+"+ end=+"+ contains=xmlEntity display
    4.79 +syn region  xmlString contained start=+'+ end=+'+ contains=xmlEntity display
    4.80 +
    4.81 +
    4.82 +" punctuation (within attributes) e.g. <tag xml:foo.attribute ...>
    4.83 +"                                              ^   ^
    4.84 +" syn match   xmlAttribPunct +[-:._]+ contained display
    4.85 +syn match   xmlAttribPunct +[:.]+ contained display
    4.86 +
    4.87 +" no highlighting for xmlEqual (xmlEqual has no highlighting group)
    4.88 +syn match   xmlEqual +=+ display
    4.89 +
    4.90 +
    4.91 +" attribute, everything before the '='
    4.92 +"
    4.93 +" PROVIDES: @xmlAttribHook
    4.94 +"
    4.95 +" EXAMPLE:
    4.96 +"
    4.97 +" <tag foo.attribute = "value">
    4.98 +"      ^^^^^^^^^^^^^
    4.99 +"
   4.100 +syn match   xmlAttrib
   4.101 +    \ +[-'"<]\@<!\<[a-zA-Z:_][-.0-9a-zA-Z0-9:_]*\>\(['">]\@!\|$\)+
   4.102 +    \ contained
   4.103 +    \ contains=xmlAttribPunct,@xmlAttribHook
   4.104 +    \ display
   4.105 +
   4.106 +
   4.107 +" namespace spec
   4.108 +"
   4.109 +" PROVIDES: @xmlNamespaceHook
   4.110 +"
   4.111 +" EXAMPLE:
   4.112 +"
   4.113 +" <xsl:for-each select = "lola">
   4.114 +"  ^^^
   4.115 +"
   4.116 +if exists("g:mxml_namespace_transparent")
   4.117 +syn match   xmlNamespace
   4.118 +    \ +\(<\|</\)\@<=[^ /!?<>"':]\+[:]\@=+
   4.119 +    \ contained
   4.120 +    \ contains=@xmlNamespaceHook
   4.121 +    \ transparent
   4.122 +    \ display
   4.123 +else
   4.124 +syn match   xmlNamespace
   4.125 +    \ +\(<\|</\)\@<=[^ /!?<>"':]\+[:]\@=+
   4.126 +    \ contained
   4.127 +    \ contains=@xmlNamespaceHook
   4.128 +    \ display
   4.129 +endif
   4.130 +
   4.131 +
   4.132 +" tag name
   4.133 +"
   4.134 +" PROVIDES: @xmlTagHook
   4.135 +"
   4.136 +" EXAMPLE:
   4.137 +"
   4.138 +" <tag foo.attribute = "value">
   4.139 +"  ^^^
   4.140 +"
   4.141 +syn match   xmlTagName
   4.142 +    \ +[<]\@<=[^ /!?<>"']\++
   4.143 +    \ contained
   4.144 +    \ contains=xmlNamespace,xmlAttribPunct,@xmlTagHook
   4.145 +    \ display
   4.146 +
   4.147 +
   4.148 +if exists('g:mxml_syntax_folding')
   4.149 +
   4.150 +    " start tag
   4.151 +    " use matchgroup=xmlTag to skip over the leading '<'
   4.152 +    "
   4.153 +    " PROVIDES: @xmlStartTagHook
   4.154 +    "
   4.155 +    " EXAMPLE:
   4.156 +    "
   4.157 +    " <tag id="whoops">
   4.158 +    " s^^^^^^^^^^^^^^^e
   4.159 +    "
   4.160 +    syn region   xmlTag
   4.161 +	\ matchgroup=xmlTag start=+<[^ /!?<>"']\@=+
   4.162 +	\ matchgroup=xmlTag end=+>+
   4.163 +	\ contained
   4.164 +	\ contains=xmlError,xmlTagName,xmlAttrib,xmlEqual,xmlString,@xmlStartTagHook
   4.165 +
   4.166 +
   4.167 +    " highlight the end tag
   4.168 +    "
   4.169 +    " PROVIDES: @xmlTagHook
   4.170 +    " (should we provide a separate @xmlEndTagHook ?)
   4.171 +    "
   4.172 +    " EXAMPLE:
   4.173 +    "
   4.174 +    " </tag>
   4.175 +    " ^^^^^^
   4.176 +    "
   4.177 +    syn match   xmlEndTag
   4.178 +	\ +</[^ /!?<>"']\+>+
   4.179 +	\ contained
   4.180 +	\ contains=xmlNamespace,xmlAttribPunct,@xmlTagHook
   4.181 +
   4.182 +
   4.183 +    " tag elements with syntax-folding.
   4.184 +    " NOTE: NO HIGHLIGHTING -- highlighting is done by contained elements
   4.185 +    "
   4.186 +    " PROVIDES: @xmlRegionHook
   4.187 +    "
   4.188 +    " EXAMPLE:
   4.189 +    "
   4.190 +    " <tag id="whoops">
   4.191 +    "   <!-- comment -->
   4.192 +    "   <another.tag></another.tag>
   4.193 +    "   <empty.tag/>
   4.194 +    "   some data
   4.195 +    " </tag>
   4.196 +    "
   4.197 +    syn region   xmlRegion
   4.198 +	\ start=+<\z([^ /!?<>"']\+\)+
   4.199 +	\ skip=+<!--\_.\{-}-->+
   4.200 +	\ end=+</\z1\_\s\{-}>+
   4.201 +	\ matchgroup=xmlEndTag end=+/>+
   4.202 +	\ fold
   4.203 +	\ contains=xmlTag,xmlEndTag,xmlCdata,xmlRegion,xmlComment,xmlEntity,xmlProcessing,@xmlRegionHook
   4.204 +	\ keepend
   4.205 +	\ extend
   4.206 +
   4.207 +else
   4.208 +
   4.209 +    " no syntax folding:
   4.210 +    " - contained attribute removed
   4.211 +    " - xmlRegion not defined
   4.212 +    "
   4.213 +    syn region   xmlTag
   4.214 +	\ matchgroup=xmlTag start=+<[^ /!?<>"']\@=+
   4.215 +	\ matchgroup=xmlTag end=+>+
   4.216 +	\ contains=xmlError,xmlTagName,xmlAttrib,xmlEqual,xmlString,@xmlStartTagHook
   4.217 +
   4.218 +    syn match   xmlEndTag
   4.219 +	\ +</[^ /!?<>"']\+>+
   4.220 +	\ contains=xmlNamespace,xmlAttribPunct,@xmlTagHook
   4.221 +
   4.222 +endif
   4.223 +
   4.224 +
   4.225 +" &entities; compare with dtd
   4.226 +syn match   xmlEntity                 "&[^; \t]*;" contains=xmlEntityPunct
   4.227 +syn match   xmlEntityPunct  contained "[&.;]"
   4.228 +
   4.229 +if exists('g:mxml_syntax_folding')
   4.230 +
   4.231 +    " The real comments (this implements the comments as defined by xml,
   4.232 +    " but not all xml pages actually conform to it. Errors are flagged.
   4.233 +    syn region  xmlComment
   4.234 +	\ start=+<!+
   4.235 +	\ end=+>+
   4.236 +	\ contains=xmlCommentPart,xmlCommentError
   4.237 +	\ extend
   4.238 +	\ fold
   4.239 +
   4.240 +else
   4.241 +
   4.242 +    " no syntax folding:
   4.243 +    " - fold attribute removed
   4.244 +    "
   4.245 +    syn region  xmlComment
   4.246 +	\ start=+<!+
   4.247 +	\ end=+>+
   4.248 +	\ contains=xmlCommentPart,xmlCommentError
   4.249 +	\ extend
   4.250 +
   4.251 +endif
   4.252 +
   4.253 +syn keyword xmlTodo         contained TODO FIXME XXX
   4.254 +syn match   xmlCommentError contained "[^><!]"
   4.255 +syn region  xmlCommentPart
   4.256 +    \ start=+--+
   4.257 +    \ end=+--+
   4.258 +    \ contained
   4.259 +    \ contains=xmlTodo,@xmlCommentHook
   4.260 +
   4.261 +
   4.262 +" CData sections
   4.263 +"
   4.264 +" PROVIDES: @xmlCdataHook
   4.265 +"
   4.266 +syn region    xmlCdata
   4.267 +    \ start=+<!\[CDATA\[+
   4.268 +    \ end=+]]>+
   4.269 +    \ contains=xmlCdataStart,xmlCdataEnd,@xmlCdataHook
   4.270 +    \ keepend
   4.271 +    \ extend
   4.272 +
   4.273 +" using the following line instead leads to corrupt folding at CDATA regions
   4.274 +" syn match    xmlCdata      +<!\[CDATA\[\_.\{-}]]>+  contains=xmlCdataStart,xmlCdataEnd,@xmlCdataHook
   4.275 +syn match    xmlCdataStart +<!\[CDATA\[+  contained contains=xmlCdataCdata
   4.276 +syn keyword  xmlCdataCdata CDATA          contained
   4.277 +syn match    xmlCdataEnd   +]]>+          contained
   4.278 +
   4.279 +
   4.280 +" Processing instructions
   4.281 +" This allows "?>" inside strings -- good idea?
   4.282 +syn region  xmlProcessing matchgroup=xmlProcessingDelim start="<?" end="?>" contains=xmlAttrib,xmlEqual,xmlString
   4.283 +
   4.284 +
   4.285 +if exists('g:mxml_syntax_folding')
   4.286 +
   4.287 +    " DTD -- we use dtd.vim here
   4.288 +    syn region  xmlDocType matchgroup=xmlDocTypeDecl
   4.289 +	\ start="<!DOCTYPE"he=s+2,rs=s+2 end=">"
   4.290 +	\ fold
   4.291 +	\ contains=xmlDocTypeKeyword,xmlInlineDTD,xmlString
   4.292 +else
   4.293 +
   4.294 +    " no syntax folding:
   4.295 +    " - fold attribute removed
   4.296 +    "
   4.297 +    syn region  xmlDocType matchgroup=xmlDocTypeDecl
   4.298 +	\ start="<!DOCTYPE"he=s+2,rs=s+2 end=">"
   4.299 +	\ contains=xmlDocTypeKeyword,xmlInlineDTD,xmlString
   4.300 +
   4.301 +endif
   4.302 +
   4.303 +syn keyword xmlDocTypeKeyword contained DOCTYPE PUBLIC SYSTEM
   4.304 +syn region  xmlInlineDTD contained matchgroup=xmlDocTypeDecl start="\[" end="]" contains=@xmlDTD
   4.305 +syn include @xmlDTD <sfile>:p:h/dtd.vim
   4.306 +unlet b:current_syntax
   4.307 +
   4.308 +
   4.309 +" synchronizing
   4.310 +" TODO !!! to be improved !!!
   4.311 +
   4.312 +syn sync match xmlSyncDT grouphere  xmlDocType +\_.\(<!DOCTYPE\)\@=+
   4.313 +" syn sync match xmlSyncDT groupthere  NONE       +]>+
   4.314 +
   4.315 +if exists('g:mxml_syntax_folding')
   4.316 +    syn sync match xmlSync grouphere   xmlRegion  +\_.\(<[^ /!?<>"']\+\)\@=+
   4.317 +    " syn sync match xmlSync grouphere  xmlRegion "<[^ /!?<>"']*>"
   4.318 +    syn sync match xmlSync groupthere  xmlRegion  +</[^ /!?<>"']\+>+
   4.319 +endif
   4.320 +
   4.321 +syn keyword mxmlSpecialTagName  contained mx:Script mx:Style
   4.322 +if main_syntax != 'actionscript' || exists("actionscript")
   4.323 +  " JAVA SCRIPT
   4.324 +  syn include @mxmlScript syntax/actionscript.vim
   4.325 +  unlet b:current_syntax
   4.326 +  syn region  Script start=+<mx:Script[^>]*>+ keepend end=+</mx:Script>+me=s-1 contains=@mxmlScript,mxmlCssStyleComment,mxmlScriptTag,@htmlPreproc
   4.327 +  syn region  mxmlScriptTag     contained start=+<mx:Script+ end=+>+       contains=htmlTagN,htmlString,htmlArg,htmlValue,htmlTagError,htmlEvent
   4.328 +  MXMLHiLink mxmlScriptTag xmlTag
   4.329 +
   4.330 +  syn region mxmlEvent        contained start=+\<on\a\+\s*=[\t ]*'+ end=+'+ keepend contains=mxmlEventSQ
   4.331 +  syn region mxmlEvent        contained start=+\<on\a\+\s*=[\t ]*"+ end=+"+ keepend contains=mxmlEventDQ
   4.332 +  syn region mxmlEventSQ        contained start=+'+ms=s+1 end=+'+me=s-1 contains=@mxmlScript
   4.333 +  syn region mxmlEventDQ        contained start=+"+ms=s+1 end=+"+me=s-1 contains=@mxmlScript
   4.334 +  MXMLHiLink mxmlEventSQ mxmlEvent
   4.335 +  MXMLHiLink mxmlEventDQ mxmlEvent
   4.336 +
   4.337 +  " a javascript expression is used as an arg value
   4.338 +  syn region  actionScriptExpression contained start=+&{+ keepend end=+};+ contains=@mxmlScript,@htmlPreproc
   4.339 +endif
   4.340 +syn sync minlines=100
   4.341 +
   4.342 +syn cluster mxmlScript      add=@htmlPreproc
   4.343 +
   4.344 +if main_syntax == "mxml"
   4.345 +  syn sync match mxmlHighlight groupthere NONE "<[/a-zA-Z]"
   4.346 +  syn sync match mxmlHighlight groupthere Script "<mx:Script"
   4.347 +  syn sync match mxmlHighlightSkip "^.*['\"].*$"
   4.348 +  syn sync minlines=10
   4.349 +endif
   4.350 +
   4.351 +" The default highlighting.
   4.352 +MXMLHiLink xmlTodo		Todo
   4.353 +MXMLHiLink xmlTag		Function
   4.354 +MXMLHiLink xmlTagName		Function
   4.355 +MXMLHiLink xmlEndTag		Identifier
   4.356 +if !exists("g:mxml_namespace_transparent")
   4.357 +    MXMLHiLink xmlNamespace	Tag
   4.358 +endif
   4.359 +MXMLHiLink xmlEntity		Statement
   4.360 +MXMLHiLink xmlEntityPunct	Type
   4.361 +
   4.362 +MXMLHiLink xmlAttribPunct	Comment
   4.363 +MXMLHiLink xmlAttrib		Type
   4.364 +
   4.365 +MXMLHiLink xmlString		String
   4.366 +MXMLHiLink xmlComment		Comment
   4.367 +MXMLHiLink xmlCommentPart	Comment
   4.368 +MXMLHiLink xmlCommentError	Error
   4.369 +MXMLHiLink xmlError		Error
   4.370 +
   4.371 +MXMLHiLink xmlProcessingDelim	Comment
   4.372 +MXMLHiLink xmlProcessing	Type
   4.373 +
   4.374 +MXMLHiLink xmlCdata		String
   4.375 +MXMLHiLink xmlCdataCdata	Statement
   4.376 +MXMLHiLink xmlCdataStart	Type
   4.377 +MXMLHiLink xmlCdataEnd		Type
   4.378 +
   4.379 +MXMLHiLink xmlDocTypeDecl	Function
   4.380 +MXMLHiLink xmlDocTypeKeyword	Statement
   4.381 +MXMLHiLink xmlInlineDTD	Function
   4.382 +MXMLHiLink Script		Special
   4.383 +MXMLHiLink actionScriptExpression Script 		
   4.384 +MXMLHiLink xmlCssStyleComment    Comment
   4.385 +MXMLHiLink xmlCssDefinition      Special
   4.386 +MXMLHiLink mxmlEvent             Script
   4.387 +MXMLHiLink mxmlSpecialTagName    Exception 
   4.388 +
   4.389 +
   4.390 +let b:current_syntax = "mxml"
   4.391 +if main_syntax == 'mxml'
   4.392 +  unlet main_syntax
   4.393 +endif
   4.394 +
   4.395 +let &cpo = s:mxml_cpo_save
   4.396 +unlet s:mxml_cpo_save
   4.397 +
   4.398 +" vim: ts=8