<?xml version="1.0" encoding="UTF-8"?>
<language id="mxml" _name="MXML" version="2.0" _section="Markup">
    <metadata>
        <property name="mimetypes">text/mxml</property>
        <property name="globs">*.mxml</property>
    </metadata>
    
    <styles>
    	<style id="actionscript" name="_Actionscript" map-to="as:as"/>
   	</styles>


    <definitions>

		<replace id="xml:cdata" ref="as:Cdata"/>
		
		<context id="mxStyle">
			<start>&lt;\s*mx\:Style\s*&gt;</start>
			<end>&lt;\/\s*mx\:Style\s*&gt;</end>
			<include>
				<context sub-pattern="0" style-ref="def:keyword" where="start"/>
				<context sub-pattern="0" style-ref="def:keyword" where="end"/>
				<context ref="css:css"/>
			</include>
		</context>



		<context id="mxml">
			<include>
				<context ref="mxStyle"/>
				<context ref="xml:xml"/>
			</include>
		</context>
    </definitions>
</language>
