summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarlos Henrique Guardão Gandarez <782854+gandarez@users.noreply.github.com>2021-07-24 04:14:13 -0300
committerGitHub <noreply@github.com>2021-07-24 09:14:13 +0200
commitd7477d1445422ed4846bcdacae15d5285e777519 (patch)
tree9ac3b6f9c1d9caba663823f3d48f5fb0afa37775
parentf5e358c3fe29e34251adf096f11f884e0eadec1b (diff)
downloadpygments-git-d7477d1445422ed4846bcdacae15d5285e777519.tar.gz
add min to analyse text for jasmin (#1619)
-rw-r--r--pygments/lexers/jvm.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/pygments/lexers/jvm.py b/pygments/lexers/jvm.py
index 2c5e3571..b1cdd019 100644
--- a/pygments/lexers/jvm.py
+++ b/pygments/lexers/jvm.py
@@ -1735,7 +1735,7 @@ class JasminLexer(RegexLexer):
r'inner|interface|limit|set|signature|stack)\b', text,
re.MULTILINE):
score += 0.6
- return score
+ return min(score, 1.0)
class SarlLexer(RegexLexer):