Skip to content

Commit 63eed64

Browse files
author
Yury Selivanov
committed
Add a comment to the 'from-import' rule
1 parent b4b3083 commit 63eed64

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

grammars/MagicPython.syntax.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -568,6 +568,9 @@ repository:
568568
(?x) \{ [^'"}\n]*? \} (?=.*?\})
569569
570570
from-import:
571+
comment: |
572+
The main purpose of this rule is to consume '...', so that
573+
it's not tokenized as ellipsis.
571574
match: |
572575
(?x)
573576
\s* (from) (\s*\.+\s*)

0 commit comments

Comments
 (0)