From e17e5547d79c3a900e1c8267815fe5d6dee27ffc Mon Sep 17 00:00:00 2001 From: Björn Linse Date: Thu, 25 Feb 2016 11:18:55 +0100 Subject: clint.py: a function name starting with for is not a for statement --- clint.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'clint.py') diff --git a/clint.py b/clint.py index 9f6a35b7f4..fc081dcd14 100755 --- a/clint.py +++ b/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: -- cgit