forked from VimPlug/jedi
CRLF should be also treated as blank line
This commit is contained in:
+1
-1
@@ -237,7 +237,7 @@ class FastParser(use_metaclass(CachedFastParser)):
|
|||||||
# check for dedents
|
# check for dedents
|
||||||
s = l.lstrip('\t ')
|
s = l.lstrip('\t ')
|
||||||
indent = len(l) - len(s)
|
indent = len(l) - len(s)
|
||||||
if not s or s[0] == '#':
|
if not s or s[0] in ('#', '\r'):
|
||||||
current_lines.append(l) # just ignore comments and blank lines
|
current_lines.append(l) # just ignore comments and blank lines
|
||||||
continue
|
continue
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user