mirror of
https://github.com/davidhalter/jedi.git
synced 2025-12-18 03:25:55 +08:00
ALWAYS_BREAK_TOKEN -> ALWAYS_BREAK_TOKENS
This commit is contained in:
@@ -135,8 +135,8 @@ del _compile
|
|||||||
|
|
||||||
tabsize = 8
|
tabsize = 8
|
||||||
|
|
||||||
ALWAYS_BREAK_TOKEN = (';', 'import', 'from', 'class', 'def', 'try', 'except',
|
ALWAYS_BREAK_TOKENS = (';', 'import', 'from', 'class', 'def', 'try', 'except',
|
||||||
'finally', 'while', 'return')
|
'finally', 'while', 'return')
|
||||||
|
|
||||||
|
|
||||||
def source_tokens(source):
|
def source_tokens(source):
|
||||||
@@ -254,7 +254,7 @@ def generate_tokens(readline):
|
|||||||
else: # ordinary string
|
else: # ordinary string
|
||||||
yield STRING, token, spos, prefix
|
yield STRING, token, spos, prefix
|
||||||
elif is_identifier(initial): # ordinary name
|
elif is_identifier(initial): # ordinary name
|
||||||
if token in ALWAYS_BREAK_TOKEN:
|
if token in ALWAYS_BREAK_TOKENS:
|
||||||
paren_level = 0
|
paren_level = 0
|
||||||
while True:
|
while True:
|
||||||
indent = indents.pop()
|
indent = indents.pop()
|
||||||
|
|||||||
Reference in New Issue
Block a user