ThirdParty/Pygments/pygments/lexers/actionscript.py

changeset 6651
e8f3b5568b21
parent 5713
6762afd9f963
equal deleted inserted replaced
6650:1dd52aa8897c 6651:e8f3b5568b21
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 }

eric ide

mercurial