forked from codemirror/google-modes
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[py] Allowed trailing comma and newlines in a parenthesized from-import
Note that Python mode currently has multiple special-cased contexts for parenthesized "things" where newlines are ignored. According to https://docs.python.org/3/reference/lexical_analysis.html#implicit-line-joining whitespace and comments are always ignored inside parens/brackets/braces. Perhaps, we could clean this up in a followup.
- Loading branch information
1 parent
afe9e8f
commit c55ac15
Showing
3 changed files
with
12 additions
and
5 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