summaryrefslogtreecommitdiff
path: root/pygments/lexers/qbasic.py
diff options
context:
space:
mode:
authorPat Hawks <pat@pathawks.com>2013-03-07 19:19:36 -0400
committerPat Hawks <pat@pathawks.com>2013-03-07 19:19:36 -0400
commitbe8d031197d94605f513c37312880d0979cb9d35 (patch)
tree55b4c50866d958149bcd3ad7022fa7a1fe58ee16 /pygments/lexers/qbasic.py
parentd6820c3a56066d47f4e30c0fdbd1fe672b4df4b9 (diff)
downloadpygments-be8d031197d94605f513c37312880d0979cb9d35.tar.gz
Let's not forget about line numbers
Diffstat (limited to 'pygments/lexers/qbasic.py')
-rw-r--r--pygments/lexers/qbasic.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/pygments/lexers/qbasic.py b/pygments/lexers/qbasic.py
index a65ae3fd..bcd27678 100644
--- a/pygments/lexers/qbasic.py
+++ b/pygments/lexers/qbasic.py
@@ -53,6 +53,8 @@ ABS ASC ATN CDBL CINT CLNG COMMAND$ COS CSNG CSRLIN CVD CVDMBF CVI CVL CVS CVSMB
tokens = {
'root': [
+ (r'^(\s*)(\d+)(\s*)',
+ bygroups(Text.Whitespace, Name.Label, Text.Whitespace)),
(r'\'.*\n', Comment.Single),
(r'REM .*\n', Comment.Single),
(r'"[^\n\"]*"', String.Double),