diff options
author | Justin M. Keyes <justinkz@gmail.com> | 2017-08-05 21:10:21 +0200 |
---|---|---|
committer | Justin M. Keyes <justinkz@gmail.com> | 2017-08-06 02:51:49 +0200 |
commit | 30996359efbba90ce03ac3de7e39f20db9ce486b (patch) | |
tree | 6dca05286c80f70caa6cf7c3fb21714a23a1c62f | |
parent | efb0aca0ee3d600f34964799862cebb98bd6b0d2 (diff) | |
download | rneovim-30996359efbba90ce03ac3de7e39f20db9ce486b.tar.gz rneovim-30996359efbba90ce03ac3de7e39f20db9ce486b.tar.bz2 rneovim-30996359efbba90ce03ac3de7e39f20db9ce486b.zip |
clint: allow starting brace after `enum`
-rwxr-xr-x | src/clint.py | 3 | ||||
-rw-r--r-- | test/functional/ui/wildmode_spec.lua | 1 |
2 files changed, 2 insertions, 2 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 ' diff --git a/test/functional/ui/wildmode_spec.lua b/test/functional/ui/wildmode_spec.lua index 42c92c4c2c..209b0bdfec 100644 --- a/test/functional/ui/wildmode_spec.lua +++ b/test/functional/ui/wildmode_spec.lua @@ -2,7 +2,6 @@ local helpers = require('test.functional.helpers')(after_each) local Screen = require('test.functional.ui.screen') local clear, feed, command = helpers.clear, helpers.feed, helpers.command local iswin, set_shell_powershell = helpers.iswin, helpers.set_shell_powershell -local nvim_dir = helpers.nvim_dir local funcs = helpers.funcs local eq = helpers.eq local eval = helpers.eval |