Ignore:
Timestamp:
Jul 18, 2012, 10:57:48 PM (12 years ago)
Author:
chronos
Message:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Compiler/UAnalyzer.pas

    r62 r65  
    4545    CurrentChar: Char;
    4646    TokenCodePosition: TPoint;
     47    LineEndingChar: Char;
    4748    procedure GetNextToken;
    4849  public
     
    125126begin
    126127  Tokens := TObjectList.Create;
     128  {$IFDEF windows}
     129  LineEndingChar := LineEnding[1];
     130  {$ELSE}
     131  LineEndingChar := LineEnding;
     132  {$ENDIF}
    127133end;
    128134
     
    374380        // Update cursor position
    375381        Inc(CodePosition.X);
    376         if (CurrentChar = LineEnding[1]) then begin
     382        if (CurrentChar = LineEndingChar) then begin
    377383          CodePosition.X := 0;
    378384          Inc(CodePosition.Y);
Note: See TracChangeset for help on using the changeset viewer.