浏览代码

Fixed newline detection

git-svn-id: https://svn.inf.ethz.ch/svn/lecturers/a2/trunk@8182 8c9fc860-2736-0410-a75d-ab315db34111
negelef 7 年之前
父节点
当前提交
1d0db95a7b
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      source/FoxScanner.Mod

+ 1 - 0
source/FoxScanner.Mod

@@ -840,6 +840,7 @@ TYPE
 				symbol.position := position;
 				endPos := position.start;
 				IF (ch >= 'A') & (ch <= 'Z') OR (ch >= 'a') & (ch <= 'z') THEN
+					newline := FALSE;
 					GetIdentifier(symbol);
 					IF (case=Uppercase) & (symbol.identifierString = "END") OR (case=Lowercase) & (symbol.identifierString = "end") THEN
 						s := End