diff options
author | Björn Linse <bjorn.linse@gmail.com> | 2016-02-25 11:18:55 +0100 |
---|---|---|
committer | Björn Linse <bjorn.linse@gmail.com> | 2016-02-29 16:07:50 +0100 |
commit | e17e5547d79c3a900e1c8267815fe5d6dee27ffc (patch) | |
tree | bd75fff62108c773bfb2b5f7cfb8bcadbac5ea0d /clint.py | |
parent | c1487b9685fd6bb2640cc163152b7713e8e89e1e (diff) | |
download | rneovim-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-x | clint.py | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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: |