fix #8 ; keep track of source file; display in standard sublime format file:line:col

This commit is contained in:
Timothee Cour 2018-11-29 15:13:25 -08:00
commit 7dd8fff8a7
3 changed files with 6 additions and 1 deletions

View file

@ -63,6 +63,8 @@ proc process(path: string) =
defer:
parser.tsParserDelete()
gStateRT.sourceFile = path
if gStateRT.mode.len == 0:
gStateRT.mode = modeDefault
elif ext in [".h", ".c"]: