mirror of
https://github.com/neovim/neovim.git
synced 2026-02-10 05:48:45 +00:00
vim-patch:27630b2: runtime(python3complete): remove trailing white space
related: vim/vim#19354
27630b28ad
Co-authored-by: Mao-Yining <mao.yining@outlook.com>
This commit is contained in:
@@ -448,7 +448,7 @@ class PyParser:
|
||||
def _parseassignment(self):
|
||||
assign=''
|
||||
tokentype, token, indent = self.donext()
|
||||
if tokentype == tokenize.STRING or token == 'str':
|
||||
if tokentype == tokenize.STRING or token == 'str':
|
||||
return '""'
|
||||
elif token == '(' or token == 'tuple':
|
||||
return '()'
|
||||
@@ -556,7 +556,7 @@ class PyParser:
|
||||
freshscope = True
|
||||
dbg("new scope: class")
|
||||
self.scope = self.scope.add(cls)
|
||||
|
||||
|
||||
elif token == 'import':
|
||||
imports = self._parseimportlist()
|
||||
for mod, alias in imports:
|
||||
@@ -578,7 +578,7 @@ class PyParser:
|
||||
elif tokentype == STRING:
|
||||
if freshscope: self.scope.doc(token)
|
||||
elif tokentype == NAME:
|
||||
name,token = self._parsedotname(token)
|
||||
name,token = self._parsedotname(token)
|
||||
if token == '=':
|
||||
stmt = self._parseassignment()
|
||||
dbg("parseassignment: %s = %s" % (name, stmt))
|
||||
|
||||
Reference in New Issue
Block a user