diff options
author | ZyX <kp-pav@yandex.ru> | 2016-05-01 20:35:51 +0300 |
---|---|---|
committer | ZyX <kp-pav@yandex.ru> | 2016-05-01 20:35:51 +0300 |
commit | cf4e1fb0f4962319eee292248d9c1f73be3a8d0c (patch) | |
tree | 60b1d2aad6205c74b7c2611fbbed45759a302f4f /src/nvim/syntax.c | |
parent | a1f985f60a228604970a70872b7ea1fb5299eba3 (diff) | |
download | rneovim-cf4e1fb0f4962319eee292248d9c1f73be3a8d0c.tar.gz rneovim-cf4e1fb0f4962319eee292248d9c1f73be3a8d0c.tar.bz2 rneovim-cf4e1fb0f4962319eee292248d9c1f73be3a8d0c.zip |
*: Fix new linter errors
Originally there were 128 new errors, so I thought this is a good idea to fix
all of them. Of course, this commit also fixes many suppressed errors.
Diffstat (limited to 'src/nvim/syntax.c')
-rw-r--r-- | src/nvim/syntax.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/src/nvim/syntax.c b/src/nvim/syntax.c index 26f0a6c94b..41af7af55c 100644 --- a/src/nvim/syntax.c +++ b/src/nvim/syntax.c @@ -4478,12 +4478,10 @@ syn_cmd_region ( if (illegal || not_enough) rest = NULL; - /* - * Must have a "start" and "end" pattern. - */ - if (rest != NULL && (pat_ptrs[ITEM_START] == NULL || - pat_ptrs[ITEM_END] == NULL)) { - not_enough = TRUE; + // Must have a "start" and "end" pattern. + if (rest != NULL && (pat_ptrs[ITEM_START] == NULL + || pat_ptrs[ITEM_END] == NULL)) { + not_enough = true; rest = NULL; } |