Skip to content

Commit 97ad1a4

Browse files
author
Yury Selivanov
committed
Sync cson and tmLanguage with 'syntax.yaml'
1 parent 63eed64 commit 97ad1a4

2 files changed

Lines changed: 9 additions & 0 deletions

File tree

grammars/MagicPython.cson

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -813,6 +813,11 @@ repository:
813813
}
814814
]
815815
"from-import":
816+
comment: '''
817+
The main purpose of this rule is to consume '...', so that
818+
it's not tokenized as ellipsis.
819+
820+
'''
816821
match: '''
817822
(?x)
818823
\\s* (from) (\\s*\\.+\\s*)

grammars/MagicPython.tmLanguage

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1316,6 +1316,10 @@
13161316
</dict>
13171317
<key>from-import</key>
13181318
<dict>
1319+
<key>comment</key>
1320+
<string>The main purpose of this rule is to consume &apos;...&apos;, so that
1321+
it&apos;s not tokenized as ellipsis.
1322+
</string>
13191323
<key>match</key>
13201324
<string>(?x)
13211325
\s* (from) (\s*\.+\s*)

0 commit comments

Comments
 (0)