mirror of
https://github.com/neovim/neovim
synced 2025-07-16 01:01:49 +00:00
clint.py: a function name starting with for is not a for statement
This commit is contained in:
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:
|
||||
|
Reference in New Issue
Block a user