mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
clint: allow starting brace after enum
This commit is contained in:
parent
efb0aca0ee
commit
30996359ef
@ -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 '
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user