Skip to content

Commit bedb677

Browse files
committed
Revert "Bump column info on open curly in %{"
Otherwise tokens are emitted with the wrong information. This reverts commit 6a7511f.
1 parent 6a7511f commit bedb677

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/elixir/src/elixir_tokenizer.erl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -655,7 +655,7 @@ tokenize([$%, $[ | Rest], Line, Column, Scope, Tokens) ->
655655
error(Reason, Rest, Scope, Tokens);
656656

657657
tokenize([$%, ${ | T], Line, Column, Scope, Tokens) ->
658-
Token = {'{', {Line, Column + 1, nil}},
658+
Token = {'{', {Line, Column, nil}},
659659
handle_terminator(T, Line, Column + 2, Scope, Token, [{'%{}', {Line, Column, nil}} | Tokens]);
660660

661661
tokenize([$% | T], Line, Column, Scope, Tokens) ->

0 commit comments

Comments
 (0)