1
0
forked from VimPlug/jedi

Python 2.7 compatibility.

This commit is contained in:
Dave Halter
2015-01-13 02:12:49 +01:00
parent cc64265187
commit e6b9111749
8 changed files with 34 additions and 20 deletions

View File

@@ -71,7 +71,8 @@ yield_stmt: yield_expr
raise_stmt: 'raise' [test ['from' test | ',' test [',' test]]]
import_stmt: import_name | import_from
import_name: 'import' dotted_as_names
import_from: ('from' ('.'* dotted_name | '.'+)
# note below: the ('.' | '...') is necessary because '...' is tokenized as ELLIPSIS
import_from: ('from' (('.' | '...')* dotted_name | ('.' | '...')+)
'import' ('*' | '(' import_as_names ')' | import_as_names))
import_as_name: NAME ['as' NAME]
dotted_as_name: dotted_name ['as' NAME]