Skip to content

Commit

Permalink
add min to analyse text for jasmin (#1619)
Browse files Browse the repository at this point in the history
  • Loading branch information
gandarez committed Jul 24, 2021
1 parent f5e358c commit d7477d1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pygments/lexers/jvm.py
Expand Up @@ -1735,7 +1735,7 @@ def analyse_text(text):
r'inner|interface|limit|set|signature|stack)\b', text,
re.MULTILINE):
score += 0.6
return score
return min(score, 1.0)


class SarlLexer(RegexLexer):
Expand Down

0 comments on commit d7477d1

Please sign in to comment.