Skip to content

Commit

Permalink
Do not consider indent/dedent as tokens in python
Browse files Browse the repository at this point in the history
  • Loading branch information
jiegec committed Jul 11, 2024
1 parent 933a0ca commit e660024
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions core/src/lang/tokenizer/python.rs
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,11 @@ pub fn tokenize_str(content: &str) -> anyhow::Result<Vec<Token>> {
// skip newline or comments
Comment(_) => continue,
Newline => continue, // 6
Indent => 7,
Dedent => 8,
// skip indentation
Indent => continue,
Dedent => continue,
// Indent => 7,
// Dedent => 8,
StartModule => 9,
StartInteractive => 10,
StartExpression => 11,
Expand Down

0 comments on commit e660024

Please sign in to comment.