diff options
author | Carlos Henrique Guardão Gandarez <782854+gandarez@users.noreply.github.com> | 2021-02-12 16:36:20 -0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-02-12 20:36:20 +0100 |
commit | aa0c35b640ae45714dccf9af3214f1550b5ae20f (patch) | |
tree | fb268f1665877726d1f2ddf0129c245dff379873 /pygments/lexers/basic.py | |
parent | 9348b6063d469eed47725f7a2d801d747d164db3 (diff) | |
download | pygments-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.py | 4 |
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 |