mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-12 20:09:19 +02:00
[PATCH 066/188] adding skipAsmSym to the scanner
From d69e132ed543deb8d51f097b9adaba00dcd9769d Mon Sep 17 00:00:00 2001 From: Dmitry Boyarintsev <skalogryz.lists@gmail.com> Date: Wed, 4 Mar 2020 09:23:14 -0500 git-svn-id: branches/wasm@46062 -
This commit is contained in:
parent
b7aa824c5a
commit
2bbcd26b95
@ -39,6 +39,8 @@ type
|
|||||||
token : TWatToken;
|
token : TWatToken;
|
||||||
resText : string;
|
resText : string;
|
||||||
asmCmd : string;
|
asmCmd : string;
|
||||||
|
|
||||||
|
skipAsmSym : Boolean;
|
||||||
procedure SetSource(const abuf: string);
|
procedure SetSource(const abuf: string);
|
||||||
function Next: Boolean;
|
function Next: Boolean;
|
||||||
|
|
||||||
@ -219,7 +221,7 @@ begin
|
|||||||
// comment until the ;)
|
// comment until the ;)
|
||||||
cmt := ScanToSubstr(buf, idx, ';)');
|
cmt := ScanToSubstr(buf, idx, ';)');
|
||||||
|
|
||||||
if CommentIsSymbol(cmt) then begin
|
if not skipAsmSym and CommentIsSymbol(cmt) then begin
|
||||||
token:=weAsmSymbol;
|
token:=weAsmSymbol;
|
||||||
done:=true;
|
done:=true;
|
||||||
end else
|
end else
|
||||||
|
Loading…
Reference in New Issue
Block a user