summaryrefslogtreecommitdiff
path: root/pygments/lexers/asm.py
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2011-06-18 13:49:00 +0200
committerGeorg Brandl <georg@python.org>2011-06-18 13:49:00 +0200
commit1507dac8fd099aad7afca378965ceb508b00dddd (patch)
tree7c7a3448b6b7628f8bd33e207c1b68854ad375ae /pygments/lexers/asm.py
parent522b59a55921a278a847c573974811417cd9fac6 (diff)
parent0bf6072b0e75fa4b6afab5d23477d7aa4aa1c77c (diff)
downloadpygments-1507dac8fd099aad7afca378965ceb508b00dddd.tar.gz
merge with bgoetzmann/pygments-main
Diffstat (limited to 'pygments/lexers/asm.py')
-rw-r--r--pygments/lexers/asm.py6
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):
"""