diff options
author | Georg Brandl <georg@python.org> | 2011-06-18 13:49:00 +0200 |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2011-06-18 13:49:00 +0200 |
commit | 1507dac8fd099aad7afca378965ceb508b00dddd (patch) | |
tree | 7c7a3448b6b7628f8bd33e207c1b68854ad375ae /pygments/lexers/asm.py | |
parent | 522b59a55921a278a847c573974811417cd9fac6 (diff) | |
parent | 0bf6072b0e75fa4b6afab5d23477d7aa4aa1c77c (diff) | |
download | pygments-1507dac8fd099aad7afca378965ceb508b00dddd.tar.gz |
merge with bgoetzmann/pygments-main
Diffstat (limited to 'pygments/lexers/asm.py')
-rw-r--r-- | pygments/lexers/asm.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/pygments/lexers/asm.py b/pygments/lexers/asm.py index 4740569c..a57ea69d 100644 --- a/pygments/lexers/asm.py +++ b/pygments/lexers/asm.py @@ -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): """ |