summaryrefslogtreecommitdiff
path: root/pygments/lexers/qbasic.py
diff options
context:
space:
mode:
authorPat Hawks <pat@pathawks.com>2013-03-07 19:34:52 -0400
committerPat Hawks <pat@pathawks.com>2013-03-07 19:34:52 -0400
commitc6b200144b47e3c4a2c8366a52815ed0683cfe86 (patch)
treeb486fb87145a53ad1a98d78bda0c9683dd2429c6 /pygments/lexers/qbasic.py
parentbe8d031197d94605f513c37312880d0979cb9d35 (diff)
downloadpygments-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.py3
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)),