Ignore:
Timestamp:
Oct 19, 2010, 1:11:59 PM (14 years ago)
Author:
george
Message:
  • Minor modifications.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/Transpascal/Compiler/Analyze/UParser.pas

    r70 r71  
    3535    CodeStreamPosition: integer;
    3636    CodePosition: TPoint;
    37     LastTokenPosition: TPoint;
     37    LastTokenEnd: TPoint;
     38    LastTokenStart: TPoint;
    3839    SourceCodeText: TStringList;
    3940    function IsAlphanumeric(Character: char): boolean;
     
    7475begin
    7576  if Assigned(FOnErrorMessage) then
    76     FOnErrorMessage(Format(Text, Arguments), LastTokenPosition, FileName);
     77    FOnErrorMessage(Format(Text, Arguments), LastTokenStart, FileName);
    7778end;
    7879
     
    8081begin
    8182  Log('Expected: ' + Code + '  Readed: ' + FNextToken);
    82   if FNextToken <> Code then
    83   begin
     83  if FNextToken <> Code then begin
     84    //ReadCode;
    8485    ErrorMessage(SExpectedButFound, [Code, FNextToken]);
    8586
     
    185186  DoubleSpecChar: array[0..6] of string = (':=', '..', '<=', '>=', '<>', '+=', '-=');
    186187begin
    187   LastTokenPosition := CodePosition;
     188  LastTokenStart := LastTokenEnd;
     189  LastTokenEnd := CodePosition;
    188190  FNextToken := '';
    189191  FNextTokenType := ttNone;
Note: See TracChangeset for help on using the changeset viewer.