123 filenames = ['*.as'] |
123 filenames = ['*.as'] |
124 mimetypes = ['application/x-actionscript3', 'text/x-actionscript3', |
124 mimetypes = ['application/x-actionscript3', 'text/x-actionscript3', |
125 'text/actionscript3'] |
125 'text/actionscript3'] |
126 |
126 |
127 identifier = r'[$a-zA-Z_]\w*' |
127 identifier = r'[$a-zA-Z_]\w*' |
128 typeidentifier = identifier + '(?:\.<\w+>)?' |
128 typeidentifier = identifier + r'(?:\.<\w+>)?' |
129 |
129 |
130 flags = re.DOTALL | re.MULTILINE |
130 flags = re.DOTALL | re.MULTILINE |
131 tokens = { |
131 tokens = { |
132 'root': [ |
132 'root': [ |
133 (r'\s+', Text), |
133 (r'\s+', Text), |
230 (r'\s+', Text), |
230 (r'\s+', Text), |
231 (r'[\w.:-]+\s*=', Name.Attribute, 'attr'), |
231 (r'[\w.:-]+\s*=', Name.Attribute, 'attr'), |
232 (r'/?\s*>', Name.Tag, '#pop'), |
232 (r'/?\s*>', Name.Tag, '#pop'), |
233 ], |
233 ], |
234 'attr': [ |
234 'attr': [ |
235 ('\s+', Text), |
235 (r'\s+', Text), |
236 ('".*?"', String, '#pop'), |
236 ('".*?"', String, '#pop'), |
237 ("'.*?'", String, '#pop'), |
237 ("'.*?'", String, '#pop'), |
238 (r'[^\s>]+', String, '#pop'), |
238 (r'[^\s>]+', String, '#pop'), |
239 ], |
239 ], |
240 } |
240 } |