mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-21 20:09:25 +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;
|
||||
resText : string;
|
||||
asmCmd : string;
|
||||
|
||||
skipAsmSym : Boolean;
|
||||
procedure SetSource(const abuf: string);
|
||||
function Next: Boolean;
|
||||
|
||||
@ -219,7 +221,7 @@ begin
|
||||
// comment until the ;)
|
||||
cmt := ScanToSubstr(buf, idx, ';)');
|
||||
|
||||
if CommentIsSymbol(cmt) then begin
|
||||
if not skipAsmSym and CommentIsSymbol(cmt) then begin
|
||||
token:=weAsmSymbol;
|
||||
done:=true;
|
||||
end else
|
||||
|
Loading…
Reference in New Issue
Block a user