{ scopeName = 'text.xml.mxml';
fileTypes = ( 'mxml' );
foldingStartMarker = '^\s*(<[^!?%/](?!.+?(/>|))|<[!%]--(?!.+?--%?>)|<%[!]?(?!.+?%>))';
foldingStopMarker = '^\s*([^>]+>|[/%]>|-->)\s*$';
patterns = (
{ begin = '(?<=)';
end = '(?=)';
patterns = ( { include = '#script-stuff'; } );
},
{ begin = '(?<=)';
end = '(?=)';
contentName = 'source.css.embedded.mxml';
patterns = ( { include = 'source.css'; } );
},
{ name = 'meta.tag.xml.mxml';
begin = '(<)(mx)(:)([a-zA-Z0-9]+)(?=[^>]*>)';
end = '(>(<)/)(mx)(:)(\4)(>)';
beginCaptures = {
1 = { name = 'punctuation.definition.tag.xml.mxml'; };
2 = { name = 'entity.name.tag.namespace.xml.mxml'; };
3 = { name = 'punctuation.separator.namespace.xml.mxml'; };
4 = { name = 'entity.name.tag.localname.xml.mxml'; };
};
endCaptures = {
1 = { name = 'punctuation.definition.tag.xml.mxml'; };
2 = { name = 'meta.scope.between-tag-pair.xml.mxml'; };
3 = { name = 'entity.name.tag.namespace.xml.mxml'; };
4 = { name = 'punctuation.separator.namespace.xml.mxml'; };
5 = { name = 'entity.name.tag.localname.xml.mxml'; };
6 = { name = 'punctuation.definition.tag.xml.mxml'; };
};
},
{ name = 'meta.tag.xml.mxml';
begin = '(?)(mx)(:)([^\s>]+)';
end = '>';
beginCaptures = {
1 = { name = 'punctuation.definition.tag.xml.mxml'; };
2 = { name = 'entity.name.tag.namespace.xml.mxml'; };
3 = { name = 'punctuation.separator.namespace.xml.mxml'; };
4 = { name = 'entity.name.tag.localname.xml.mxml'; };
};
endCaptures = { 0 = { name = 'punctuation.definition.tag.xml.mxml'; }; };
patterns = (
{ match = ' (?:([-_a-zA-Z0-9]+):)?([a-zA-Z-]+)';
captures = {
1 = { name = 'entity.other.attribute-name.namespace.xml.mxml'; };
2 = { name = 'entity.other.attribute-name.localname.xml.mxml'; };
};
},
{ include = '#doublequotedString'; },
{ include = '#singlequotedString'; },
);
},
{ include = 'text.xml'; },
);
repository = {
doublequotedString = {
name = 'string.quoted.double.xml.mxml';
begin = '"';
end = '"';
beginCaptures = { 0 = { name = 'punctuation.definition.string.begin.xml.mxml'; }; };
endCaptures = { 0 = { name = 'punctuation.definition.string.end.xml.mxml'; }; };
};
singlequotedString = {
name = 'string.quoted.single.xml';
begin = "'";
end = "'";
beginCaptures = { 0 = { name = 'punctuation.definition.string.begin.xml.mxml'; }; };
endCaptures = { 0 = { name = 'punctuation.definition.string.end.xml.mxml'; }; };
};
script-stuff = {
begin = '';
beginCaptures = { 0 = { name = 'string.unquoted.cdata.xml.mxml punctuation.definition.string.begin.xml.mxml'; }; };
endCaptures = { 0 = { name = 'string.unquoted.cdata.xml.mxml punctuation.definition.string.end.xml.mxml'; }; };
patterns = ( { include = 'source.actionscript3'; } );
contentName = 'source.actionscript3.embedded.mxml';
};
};
}