mirror of
https://github.com/neovim/neovim.git
synced 2024-12-19 18:55:14 -07:00
clint.py: a function name starting with for is not a for statement
This commit is contained in:
parent
c1487b9685
commit
e17e5547d7
2
clint.py
2
clint.py
@ -2552,7 +2552,7 @@ def CheckBraces(filename, clean_lines, linenum, error):
|
||||
|
||||
# If should always have a brace
|
||||
for blockstart in ('if', 'while', 'for'):
|
||||
if Match(r'\s*{0}[^{{]*$'.format(blockstart), line):
|
||||
if Match(r'\s*{0}(?!\w)[^{{]*$'.format(blockstart), line):
|
||||
pos = line.find(blockstart)
|
||||
pos = line.find('(', pos)
|
||||
if pos > 0:
|
||||
|
Loading…
Reference in New Issue
Block a user