]> ocean-lang.org Git - ocean/commit
scanner: fix calculation of column.
authorNeilBrown <neil@brown.name>
Sun, 18 Feb 2018 05:10:59 +0000 (16:10 +1100)
committerNeilBrown <neil@brown.name>
Sun, 18 Feb 2018 05:10:59 +0000 (16:10 +1100)
commit69b32e1af53f61ab687421cc8316f4b90d40dc38
tree41ad363095e4d844e5f9c434fef89a46a2b9801b
parent70d7b2363bd206129fc3f2c972ce0114b49eb4f1
scanner: fix calculation of column.

When we stripe the expected indent from the
start of each line, we need to update 'col'
to correctly account for tabs.
Previous code effectively assumed tabs were 4 spaces.

Signed-off-by: NeilBrown <neil@brown.name>
csrc/scanner.mdc