Pārlūkot izejas kodu

Fixed lookahead off by one char.

Brucey 10 gadi atpakaļ
vecāks
revīzija
531ae655ad
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. 1 1
      toker.bmx

+ 1 - 1
toker.bmx

@@ -234,7 +234,7 @@ Type TToker
 					If IsAlpha(sym[sym.length-1]) Then
 					If IsAlpha(sym[sym.length-1]) Then
 						' not at the end of the file?
 						' not at the end of the file?
 						If _source.Length >= _tokePos+sym.length Then
 						If _source.Length >= _tokePos+sym.length Then
-							If IsAlpha(TCHR(sym.length)) Or IsDigit(TCHR(sym.length)) Then
+							If IsAlpha(TCHR(sym.length-1)) Or IsDigit(TCHR(sym.length-1)) Then
 								Exit
 								Exit
 							End If
 							End If
 						End If
 						End If