diff options
-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)), |