diff options
author | Pat Hawks <pat@pathawks.com> | 2013-03-07 19:34:52 -0400 |
---|---|---|
committer | Pat Hawks <pat@pathawks.com> | 2013-03-07 19:34:52 -0400 |
commit | c6b200144b47e3c4a2c8366a52815ed0683cfe86 (patch) | |
tree | b486fb87145a53ad1a98d78bda0c9683dd2429c6 /pygments/lexers/qbasic.py | |
parent | be8d031197d94605f513c37312880d0979cb9d35 (diff) | |
download | pygments-c6b200144b47e3c4a2c8366a52815ed0683cfe86.tar.gz |
I think `REM` is maybe a preprocessor comment?
I think it looks better this way, anyway.
Diffstat (limited to 'pygments/lexers/qbasic.py')
-rw-r--r-- | pygments/lexers/qbasic.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/pygments/lexers/qbasic.py b/pygments/lexers/qbasic.py index bcd27678..e2269e81 100644 --- a/pygments/lexers/qbasic.py +++ b/pygments/lexers/qbasic.py @@ -56,7 +56,8 @@ ABS ASC ATN CDBL CINT CLNG COMMAND$ COS CSNG CSRLIN CVD CVDMBF CVI CVL CVS CVSMB (r'^(\s*)(\d+)(\s*)', bygroups(Text.Whitespace, Name.Label, Text.Whitespace)), (r'\'.*\n', Comment.Single), - (r'REM .*\n', Comment.Single), + (r'(REM)(\s.*)$', + bygroups(Comment.Preproc, Comment.Single)), (r'"[^\n\"]*"', String.Double), (r'(DECLARE)(\s+)([A-Z]+)(\s+)([^\s]+)', bygroups(Keyword.Declaration, Text.Whitespace, Name.Variable, Text.Whitespace, Name.Function)), |