浏览代码

Fixed lookahead off by one char.

Brucey 10 年之前
父节点
当前提交
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