diff options
-rw-r--r-- | pygments/lexers/jvm.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/pygments/lexers/jvm.py b/pygments/lexers/jvm.py index 06dcc81b..0e7e1b42 100644 --- a/pygments/lexers/jvm.py +++ b/pygments/lexers/jvm.py @@ -1506,3 +1506,5 @@ class JasminLexer(RegexLexer): ] } + def analyse_text(text): + return bool(re.search(r'^\s*\.class\s', text, re.MULTILINE)) |