mirror of
https://github.com/nim-lang/Nim.git
synced 2026-02-12 14:23:45 +00:00
Merge pull request #1003 from flaviut/devel
Add token position to `nimrod scan`
This commit is contained in:
@@ -178,6 +178,7 @@ proc prettyTok*(tok: TToken): string =
|
||||
else: result = tokToStr(tok)
|
||||
|
||||
proc printTok*(tok: TToken) =
|
||||
write(stdout, tok.line, ":", tok.col, "\t")
|
||||
write(stdout, TokTypeToStr[tok.tokType])
|
||||
write(stdout, " ")
|
||||
writeln(stdout, tokToStr(tok))
|
||||
|
||||
Reference in New Issue
Block a user