mirror of
https://github.com/mikpe/pdp10-tools.git
synced 2026-03-10 20:53:47 +00:00
as: treat ; as starting a line comment, for MACRO-10 compatibility
This commit is contained in:
@@ -162,7 +162,11 @@ do_token(ScanState) ->
|
||||
$# -> do_line_comment(ScanState);
|
||||
$@ -> {ok, {Location, ?T_AT}};
|
||||
$: -> {ok, {Location, ?T_COLON}};
|
||||
$; -> {ok, {Location, ?T_NEWLINE}};
|
||||
$; ->
|
||||
%% This should be ?T_NEWLINE to permit multiple instructions in a line,
|
||||
%% but for compatibility with code written for MACRO-10 we to treat it
|
||||
%% as the start of a line-comment. TODO: restore ; -> ?T_NEWLINE
|
||||
do_line_comment(ScanState);
|
||||
$, -> {ok, {Location, ?T_COMMA}};
|
||||
$( -> {ok, {Location, ?T_LPAREN}};
|
||||
$) -> {ok, {Location, ?T_RPAREN}};
|
||||
|
||||
Reference in New Issue
Block a user