mirror of
https://github.com/irmen/prog8.git
synced 2024-11-27 03:50:27 +00:00
fix windows path issue
This commit is contained in:
parent
3b32fb74f7
commit
9f8ae485c3
@ -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...
|
||||
|
Loading…
Reference in New Issue
Block a user