diff options
author | Tim Van Steenburgh <tvansteenburgh@gmail.com> | 2011-05-26 16:09:37 -0400 |
---|---|---|
committer | Tim Van Steenburgh <tvansteenburgh@gmail.com> | 2011-05-26 16:09:37 -0400 |
commit | b8ab0806c54074c60fd005cf07777f65e8f8dd2c (patch) | |
tree | a7f70b7141d431fb4ea189ba5385bc1f60e56df2 /pygments/lexers/asm.py | |
parent | eba3cc135dc5fd38b65f9f6ae786d431324d5f35 (diff) | |
download | pygments-b8ab0806c54074c60fd005cf07777f65e8f8dd2c.tar.gz |
Fix bug in GasLexer.analyse_text(). Make sure return val can be cast to float.
Diffstat (limited to 'pygments/lexers/asm.py')
-rw-r--r-- | pygments/lexers/asm.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pygments/lexers/asm.py b/pygments/lexers/asm.py index 4740569c..97b2a39b 100644 --- a/pygments/lexers/asm.py +++ b/pygments/lexers/asm.py @@ -88,7 +88,7 @@ class GasLexer(RegexLexer): } def analyse_text(text): - return re.match(r'^\.\w+', text, re.M) + return bool(re.match(r'^\.\w+', text, re.M)) class ObjdumpLexer(RegexLexer): """ |