85 (r'\n', Text), |
85 (r'\n', Text), |
86 (r'\s+', Text), |
86 (r'\s+', Text), |
87 (r'#.*?\n', Comment) |
87 (r'#.*?\n', Comment) |
88 ], |
88 ], |
89 'punctuation': [ |
89 'punctuation': [ |
90 (r'[-*,.():]+', Punctuation) |
90 (r'[-*,.()\[\]!:]+', Punctuation) |
91 ] |
91 ] |
92 } |
92 } |
93 |
93 |
94 def analyse_text(text): |
94 def analyse_text(text): |
95 if re.match(r'^\.(text|data|section)', text, re.M): |
95 if re.match(r'^\.(text|data|section)', text, re.M): |
284 # instructions |
284 # instructions |
285 r'|add|fadd|sub|fsub|mul|fmul|udiv|sdiv|fdiv|urem|srem|frem|shl' |
285 r'|add|fadd|sub|fsub|mul|fmul|udiv|sdiv|fdiv|urem|srem|frem|shl' |
286 r'|lshr|ashr|and|or|xor|icmp|fcmp' |
286 r'|lshr|ashr|and|or|xor|icmp|fcmp' |
287 |
287 |
288 r'|phi|call|trunc|zext|sext|fptrunc|fpext|uitofp|sitofp|fptoui' |
288 r'|phi|call|trunc|zext|sext|fptrunc|fpext|uitofp|sitofp|fptoui' |
289 r'|fptosi|inttoptr|ptrtoint|bitcast|select|va_arg|ret|br|switch' |
289 r'|fptosi|inttoptr|ptrtoint|bitcast|addrspacecast' |
|
290 r'|select|va_arg|ret|br|switch' |
290 r'|invoke|unwind|unreachable' |
291 r'|invoke|unwind|unreachable' |
291 r'|indirectbr|landingpad|resume' |
292 r'|indirectbr|landingpad|resume' |
292 |
293 |
293 r'|malloc|alloca|free|load|store|getelementptr' |
294 r'|malloc|alloca|free|load|store|getelementptr' |
294 |
295 |