summaryrefslogtreecommitdiff
path: root/pygments/lexers/asm.py
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2011-06-19 09:45:13 +0200
committerGeorg Brandl <georg@python.org>2011-06-19 09:45:13 +0200
commita275a0c40bc4dcd48f52e04e056d03cecb73e973 (patch)
tree142f5c6af5cb5348bc19010cdef29216bbc748a1 /pygments/lexers/asm.py
parent8e50a30370b1ad58d8ec308d5ee7d4e7d153bc4a (diff)
parent0466a590eaf5face40a52d2ea245dc3f061723ef (diff)
downloadpygments-a275a0c40bc4dcd48f52e04e056d03cecb73e973.tar.gz
Merge with https://bitbucket.org/dvarrazzo/pygments-postgres
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):
"""