-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Line continuation indent for triple-strings
This patch introduces line continuation based indent for triple strings, which typically span multiple lines without any explicit newlines in the syntax tree (since they are hidden inside the string). This result in the following changes, some of which are clearly bugfixes: Right hand side of an assignment: ```diff x = """ -foo -""" + foo + """ ``` Operator chains: ```diff """ abc """ * """ -def -""" + def + """ ``` Operator chain as assignment right hand side: ```diff x = """ -abc -""" * """ -def -""" + abc + """ * """ + def + """ ``` Implicit tuples: ```diff """ abc """, """ -def -""" + def + """ ```
- Loading branch information
1 parent
c30af80
commit e83bc2f
Showing
4 changed files
with
144 additions
and
45 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters