diff options
author | Georg Brandl <georg@python.org> | 2011-06-19 09:45:13 +0200 |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2011-06-19 09:45:13 +0200 |
commit | a275a0c40bc4dcd48f52e04e056d03cecb73e973 (patch) | |
tree | 142f5c6af5cb5348bc19010cdef29216bbc748a1 /pygments/lexers/asm.py | |
parent | 8e50a30370b1ad58d8ec308d5ee7d4e7d153bc4a (diff) | |
parent | 0466a590eaf5face40a52d2ea245dc3f061723ef (diff) | |
download | pygments-a275a0c40bc4dcd48f52e04e056d03cecb73e973.tar.gz |
Merge with https://bitbucket.org/dvarrazzo/pygments-postgres
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): """ |