diff options
author | dundargoc <33953936+dundargoc@users.noreply.github.com> | 2022-11-01 15:39:49 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-11-01 07:39:49 -0700 |
commit | b05d1943f063c382ea96b76d250877bc58297314 (patch) | |
tree | a5f4ccbbaa27981a0135f201565b360b8ac31405 /src/nvim/regexp.c | |
parent | 582c044dbe2b2bc4c74212b5ed8660c20fa1fd99 (diff) | |
download | rneovim-b05d1943f063c382ea96b76d250877bc58297314.tar.gz rneovim-b05d1943f063c382ea96b76d250877bc58297314.tar.bz2 rneovim-b05d1943f063c382ea96b76d250877bc58297314.zip |
build(lint): remove clint.py rules for braces #20880
Uncrustify is the source of truth where possible.
Remove any redundant checks from clint.py.
See also https://github.com/neovim/neovim/pull/18563
Diffstat (limited to 'src/nvim/regexp.c')
-rw-r--r-- | src/nvim/regexp.c | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/src/nvim/regexp.c b/src/nvim/regexp.c index 6bd15fdbbe..d6f207a248 100644 --- a/src/nvim/regexp.c +++ b/src/nvim/regexp.c @@ -181,8 +181,7 @@ static int backslash_trans(int c) /// recognized. Otherwise "pp" is advanced to after the item. static int get_char_class(char **pp) { - static const char *(class_names[]) = - { + static const char *(class_names[]) = { "alnum:]", #define CLASS_ALNUM 0 "alpha:]", @@ -1328,8 +1327,7 @@ typedef struct { } decomp_T; // 0xfb20 - 0xfb4f -static decomp_T decomp_table[0xfb4f - 0xfb20 + 1] = -{ +static decomp_T decomp_table[0xfb4f - 0xfb20 + 1] = { { 0x5e2, 0, 0 }, // 0xfb20 alt ayin { 0x5d0, 0, 0 }, // 0xfb21 alt alef { 0x5d3, 0, 0 }, // 0xfb22 alt dalet @@ -2276,16 +2274,14 @@ list_T *reg_submatch_list(int no) # include "nvim/regexp_nfa.c" #endif -static regengine_T bt_regengine = -{ +static regengine_T bt_regengine = { bt_regcomp, bt_regfree, bt_regexec_nl, bt_regexec_multi, }; -static regengine_T nfa_regengine = -{ +static regengine_T nfa_regengine = { nfa_regcomp, nfa_regfree, nfa_regexec_nl, |