diff options
author | preevs <devnull@localhost> | 2011-08-02 19:28:36 -0400 |
---|---|---|
committer | preevs <devnull@localhost> | 2011-08-02 19:28:36 -0400 |
commit | 9afc51734911a6cf7f235f9ba573bca0a53e8cba (patch) | |
tree | 152fe89c88aa38e4afc757bef78f000cb918ea46 /pygments/lexers/asm.py | |
parent | 6f6c33b7ddb284030d3e723706988718e113e37c (diff) | |
parent | fe76841035ece13ad6640c920f2fd9d23144148b (diff) | |
download | pygments-9afc51734911a6cf7f235f9ba573bca0a53e8cba.tar.gz |
merge
Diffstat (limited to 'pygments/lexers/asm.py')
-rw-r--r-- | pygments/lexers/asm.py | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/pygments/lexers/asm.py b/pygments/lexers/asm.py index 4740569c..82933bc8 100644 --- a/pygments/lexers/asm.py +++ b/pygments/lexers/asm.py @@ -5,7 +5,7 @@ Lexers for assembly languages. - :copyright: Copyright 2006-2010 by the Pygments team, see AUTHORS. + :copyright: Copyright 2006-2011 by the Pygments team, see AUTHORS. :license: BSD, see LICENSE for details. """ @@ -88,7 +88,11 @@ class GasLexer(RegexLexer): } def analyse_text(text): - return re.match(r'^\.\w+', text, re.M) + if re.match(r'^\.(text|data|section)', text, re.M): + return True + elif re.match(r'^\.\w+', text, re.M): + return 0.1 + class ObjdumpLexer(RegexLexer): """ |