Skip to content

Commit

Permalink
[Python] Fix assignment after line continuation (#3940)
Browse files Browse the repository at this point in the history
Fixes #3939

This commit ensures to pop `line-continuation-body` off stack
immediately after consuming a string.

To achieve that, all exiting `string` related contexts are converted
to immediatelly pop themself off stack and new gatekeeper contexts
are created to push those on stack.

As a positive side-effect syntax cache size is reduced from 546kB
to about 477kB and parsing performance seems to be slightly better.
  • Loading branch information
deathaxe authored Mar 3, 2024
1 parent bb57a3a commit 43268d1
Show file tree
Hide file tree
Showing 2 changed files with 150 additions and 117 deletions.
Loading

0 comments on commit 43268d1

Please sign in to comment.