hare

The Hare programming language
git clone https://git.torresjrjr.com/hare.git
Log | Files | Refs | README | LICENSE

commit 2ebce28013663797152aa8b9238ef8cd4487d25a
parent d517bc7f14e7c4344f20d0460971e7d84965c60c
Author: Eyal Sawady <ecs@d2evs.net>
Date:   Fri, 28 May 2021 11:45:08 -0400

lex::lexloc: fix tab width

Tabs move to the next tab stop, not a fixed 8 columns.

Signed-off-by: Eyal Sawady <ecs@d2evs.net>

Diffstat:
Mhare/lex/lex.ha | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/hare/lex/lex.ha b/hare/lex/lex.ha @@ -676,7 +676,7 @@ fn lexloc(lex: *lexer, r: rune) void = { lex.loc.0 += 1; lex.loc.1 = 1; }, - '\t' => lex.loc.1 += 8, + '\t' => lex.loc.1 += 8 - lex.loc.1 % 8 + 1, * => lex.loc.1 += 1, }; };