8000 gh-97997: Add col_offset field to tokenizer and use that for AST nodes by lysnikolaou · Pull Request #98000 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

gh-97997: Add col_offset field to tokenizer and use that for AST nodes #98000

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
Oct 7, 2022
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Remove unnecessary assignment of starting_col_offset
  • Loading branch information
lysnikolaou committed Oct 7, 2022
commit 5c47419ee8941e752ddab2a608d8f6f0d5aafee6
1 change: 0 additions & 1 deletion Parser/tokenizer.c
Original file line number Diff line number Diff line change
Expand Up @@ -1449,7 +1449,6 @@ tok_get(struct tok_state *tok, struct token *token)
int col = 0;
int altcol = 0;
tok->atbol = 0;
tok->starting_col_offset = 0;
int cont_line_col = 0;
for (;;) {
c = tok_nextc(tok);
Expand Down
0