Browse Source

[PATCH 066/188] adding skipAsmSym to the scanner

From d69e132ed543deb8d51f097b9adaba00dcd9769d Mon Sep 17 00:00:00 2001
From: Dmitry Boyarintsev <[email protected]>
Date: Wed, 4 Mar 2020 09:23:14 -0500

git-svn-id: branches/wasm@46062 -
nickysn 5 years ago
parent
commit
2bbcd26b95
1 changed files with 3 additions and 1 deletions
  1. 3 1
      utils/wasmbin/watscanner.pas

+ 3 - 1
utils/wasmbin/watscanner.pas

@@ -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