瀏覽代碼

- use PreProcess(filepath) instead of LoadText(filepath) when including files

Ronny Otto 11 年之前
父節點
當前提交
0d04e8b3ad
共有 1 個文件被更改,包括 4 次插入1 次删除
  1. 4 1
      parser.bmx

+ 4 - 1
parser.bmx

@@ -2534,7 +2534,10 @@ End Rem
 				'instead of merging the data of multiple parsers, the
 				'same parser is used for all included files - but each
 				'of them uses an individual toker
-				Local includeSource:String = LoadText(includeFile)
+
+				'instead of "LoadText" "PreProcess" is used to include
+				'handling of conditionals and comments
+				Local includeSource:String = PreProcess(includeFile)
 				Local includeToker:TToker = New TToker.Create(includeFile, includeSource)
 
 				'backup old vars