summaryrefslogtreecommitdiff
path: root/pygments/lexers/basic.py
diff options
context:
space:
mode:
authorCarlos Henrique Guardão Gandarez <782854+gandarez@users.noreply.github.com>2021-02-12 16:36:20 -0300
committerGitHub <noreply@github.com>2021-02-12 20:36:20 +0100
commitaa0c35b640ae45714dccf9af3214f1550b5ae20f (patch)
treefb268f1665877726d1f2ddf0129c245dff379873 /pygments/lexers/basic.py
parent9348b6063d469eed47725f7a2d801d747d164db3 (diff)
downloadpygments-git-aa0c35b640ae45714dccf9af3214f1550b5ae20f.tar.gz
Fix CBM BASIC V2 analyze text logic (#1607)
Diffstat (limited to 'pygments/lexers/basic.py')
-rw-r--r--pygments/lexers/basic.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/pygments/lexers/basic.py b/pygments/lexers/basic.py
index 1931d045..d8795f1c 100644
--- a/pygments/lexers/basic.py
+++ b/pygments/lexers/basic.py
@@ -351,10 +351,10 @@ class CbmBasicV2Lexer(RegexLexer):
]
}
- def analyse_text(self, text):
+ def analyse_text(text):
# if it starts with a line number, it shouldn't be a "modern" Basic
# like VB.net
- if re.match(r'\d+', text):
+ if re.match(r'^\d+', text):
return 0.2