diff options
| author | ckelsel <ckelsel@hotmail.com> | 2017-08-07 07:51:03 +0800 | 
|---|---|---|
| committer | ckelsel <ckelsel@hotmail.com> | 2017-08-07 07:51:03 +0800 | 
| commit | 8b4dc955b7384180c1ae0eab6050bbf4e17c7673 (patch) | |
| tree | 32508d91df7b98baeae52288b8cf0aa08b40b80a /src/clint.py | |
| parent | c972efc9d113232b2688ea5c2adc8834a4eda195 (diff) | |
| parent | 2753d61e4cb037323d78ed3fd978a10694c902c6 (diff) | |
| download | rneovim-8b4dc955b7384180c1ae0eab6050bbf4e17c7673.tar.gz rneovim-8b4dc955b7384180c1ae0eab6050bbf4e17c7673.tar.bz2 rneovim-8b4dc955b7384180c1ae0eab6050bbf4e17c7673.zip  | |
Merge remote-tracking branch 'upstream/master'
Diffstat (limited to 'src/clint.py')
| -rwxr-xr-x | src/clint.py | 3 | 
1 files changed, 2 insertions, 1 deletions
diff --git a/src/clint.py b/src/clint.py index 69a061d2ab..4a41650ec4 100755 --- a/src/clint.py +++ b/src/clint.py @@ -2613,7 +2613,8 @@ def CheckBraces(filename, clean_lines, linenum, error):                      func_start_linenum += 1                  else: -                    if clean_lines.lines[func_start_linenum].endswith('{'): +                    func_start = clean_lines.lines[func_start_linenum] +                    if not func_start.startswith('enum ') and func_start.endswith('{'):                          error(filename, func_start_linenum,                                'readability/braces', 5,                                'Brace starting function body must be placed '  | 
