diff options
author | dundargoc <33953936+dundargoc@users.noreply.github.com> | 2021-09-17 16:38:16 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-09-17 07:38:16 -0700 |
commit | 867e8885991ae450019c18aa5e42546bd4b62c2c (patch) | |
tree | f130aaed5d3f46ce994871efad7e33f3dd3ef9b8 /src/nvim/syntax.c | |
parent | 1ec3d37192194d6961621f17fc5a185356586339 (diff) | |
download | rneovim-867e8885991ae450019c18aa5e42546bd4b62c2c.tar.gz rneovim-867e8885991ae450019c18aa5e42546bd4b62c2c.tar.bz2 rneovim-867e8885991ae450019c18aa5e42546bd4b62c2c.zip |
refactor(style): switch-case formatting, "uncrustify:indent-off" #15669
* refactor: disable formatting for attribute in macro
* fixup: disable/enable uncrustify with uncrustify:indent-off/on
* fixup: stop indenting contents inside braces in case
* fixup: remove case brace if no variable declaration
Diffstat (limited to 'src/nvim/syntax.c')
-rw-r--r-- | src/nvim/syntax.c | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/src/nvim/syntax.c b/src/nvim/syntax.c index 64206b4269..2512495a0a 100644 --- a/src/nvim/syntax.c +++ b/src/nvim/syntax.c @@ -5844,21 +5844,21 @@ char_u *get_syntax_name(expand_T *xp, int idx) case EXP_SUBCMD: return (char_u *)subcommands[idx].name; case EXP_CASE: { - static char *case_args[] = { "match", "ignore", NULL }; - return (char_u *)case_args[idx]; - } + static char *case_args[] = { "match", "ignore", NULL }; + return (char_u *)case_args[idx]; + } case EXP_SPELL: { - static char *spell_args[] = - { "toplevel", "notoplevel", "default", NULL }; - return (char_u *)spell_args[idx]; - } + static char *spell_args[] = + { "toplevel", "notoplevel", "default", NULL }; + return (char_u *)spell_args[idx]; + } case EXP_SYNC: { - static char *sync_args[] = - { "ccomment", "clear", "fromstart", - "linebreaks=", "linecont", "lines=", "match", - "maxlines=", "minlines=", "region", NULL }; - return (char_u *)sync_args[idx]; - } + static char *sync_args[] = + { "ccomment", "clear", "fromstart", + "linebreaks=", "linecont", "lines=", "match", + "maxlines=", "minlines=", "region", NULL }; + return (char_u *)sync_args[idx]; + } } return NULL; } |