fix windows path issue

This commit is contained in:
Irmen de Jong 2019-02-04 22:04:31 +01:00
parent 3b32fb74f7
commit 9f8ae485c3

View File

@ -1794,7 +1794,7 @@ fun prog8Parser.ModuleContext.toAst(name: String, isLibrary: Boolean, importedFr
private fun ParserRuleContext.toPosition() : Position {
val file =
if(start.inputStream.sourceName == IntStream.UNKNOWN_SOURCE_NAME)
"<internal>"
"@internal@"
else
File(start.inputStream.sourceName).name
// note: be ware of TAB characters in the source text, they count as 1 column...