aboutsummaryrefslogtreecommitdiff
path: root/clint.py
diff options
context:
space:
mode:
authorBjörn Linse <bjorn.linse@gmail.com>2016-02-25 11:18:55 +0100
committerBjörn Linse <bjorn.linse@gmail.com>2016-02-29 16:07:50 +0100
commite17e5547d79c3a900e1c8267815fe5d6dee27ffc (patch)
treebd75fff62108c773bfb2b5f7cfb8bcadbac5ea0d /clint.py
parentc1487b9685fd6bb2640cc163152b7713e8e89e1e (diff)
downloadrneovim-e17e5547d79c3a900e1c8267815fe5d6dee27ffc.tar.gz
rneovim-e17e5547d79c3a900e1c8267815fe5d6dee27ffc.tar.bz2
rneovim-e17e5547d79c3a900e1c8267815fe5d6dee27ffc.zip
clint.py: a function name starting with for is not a for statement
Diffstat (limited to 'clint.py')
-rwxr-xr-xclint.py2
1 files changed, 1 insertions, 1 deletions
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: