Back Story (not really important but it frames the question)
I have a TagLib in a JSP that takes its contents and wraps its containing code in a script block (it does much more but for the sake of the question it is not important). For example:
<aui:script use="some-module">
//my code
</aui:script>
will be served as
<script type="text/javascript>
AUI().use('sub-module', function(A) {
// my code
}
</script>
The Question
I would like all the code in between <aui:script use="things"></aui:script> and to have JavaScript syntax highlighting. So I tried editing the HTML.tmLanguage file to include this but Sublime Text 2 throws a fit.
Admittedly my regex knowledge is poor.
How can I edit HTML.tmLanguage to include my <aui:script /> taglib?
Site note, the taglib accepts various attributes like use and position.
I have so much trouble with the regex rules but I managed to get it somewhat working using the normal rules. I should add that this is a new block, along with the regular one.
XML Format