* refs #15667 improve invalid indentation errors * also show line info where = is missing * add test * add more tests
This commit is contained in:
parent
1822ed384a
commit
08262206d3
3 changed files with 74 additions and 4 deletions
|
|
@ -163,6 +163,7 @@ proc prettyTok*(tok: Token): string =
|
|||
else: $tok
|
||||
|
||||
proc printTok*(conf: ConfigRef; tok: Token) =
|
||||
# xxx factor with toLocation
|
||||
msgWriteln(conf, $tok.line & ":" & $tok.col & "\t" & $tok.tokType & " " & $tok)
|
||||
|
||||
proc initToken*(L: var Token) =
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue