diff options
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): """ |