Skip to content

Commit

Permalink
Reset indentation after soft line break
Browse files Browse the repository at this point in the history
  • Loading branch information
MDeiml committed Aug 5, 2022
1 parent 4365f3a commit e375ba9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tree-sitter-markdown/src/scanner.cc
Original file line number Diff line number Diff line change
Expand Up @@ -480,6 +480,8 @@ struct Scanner {
// break should have been a soft line break
// Reset the counter for matched blocks
matched = 0;
indentation = 0;
column = 0;
// If there is at least one open block, we should be in the matching state.
// Also set the matching flag if a `$._soft_line_break_marker` can be emitted so it
// does get emitted.
Expand Down

0 comments on commit e375ba9

Please sign in to comment.