2
0
Эх сурвалжийг харах

Fixed lookahead off by one char.

Brucey 10 жил өмнө
parent
commit
531ae655ad
1 өөрчлөгдсөн 1 нэмэгдсэн , 1 устгасан
  1. 1 1
      toker.bmx

+ 1 - 1
toker.bmx

@@ -234,7 +234,7 @@ Type TToker
 					If IsAlpha(sym[sym.length-1]) Then
 						' not at the end of the file?
 						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
 							End If
 						End If