diff options
author | Pat Hawks <pat@pathawks.com> | 2013-03-07 19:19:36 -0400 |
---|---|---|
committer | Pat Hawks <pat@pathawks.com> | 2013-03-07 19:19:36 -0400 |
commit | be8d031197d94605f513c37312880d0979cb9d35 (patch) | |
tree | 55b4c50866d958149bcd3ad7022fa7a1fe58ee16 /pygments/lexers/qbasic.py | |
parent | d6820c3a56066d47f4e30c0fdbd1fe672b4df4b9 (diff) | |
download | pygments-be8d031197d94605f513c37312880d0979cb9d35.tar.gz |
Let's not forget about line numbers
Diffstat (limited to 'pygments/lexers/qbasic.py')
-rw-r--r-- | pygments/lexers/qbasic.py | 2 |
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), |