aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Edmund Lazo <janedmundlazo@hotmail.com>2018-09-20 23:42:23 -0400
committerJan Edmund Lazo <janedmundlazo@hotmail.com>2018-09-21 00:05:06 -0400
commit01b2fa53f4593024437f5df25b7744b16b164e4f (patch)
tree16bc5fa1f461139f25ee67dcca7cfa5acbb92bdd
parent300a7a4cf464c32c9dfca577c4434060ab9d6ad2 (diff)
downloadrneovim-01b2fa53f4593024437f5df25b7744b16b164e4f.tar.gz
rneovim-01b2fa53f4593024437f5df25b7744b16b164e4f.tar.bz2
rneovim-01b2fa53f4593024437f5df25b7744b16b164e4f.zip
lint
-rw-r--r--src/nvim/message.c2
-rw-r--r--src/nvim/regexp.c12
-rw-r--r--src/nvim/regexp_nfa.c4
-rw-r--r--src/nvim/window.c2
4 files changed, 10 insertions, 10 deletions
diff --git a/src/nvim/message.c b/src/nvim/message.c
index 03561ba56f..fc7e96ac2c 100644
--- a/src/nvim/message.c
+++ b/src/nvim/message.c
@@ -2256,7 +2256,7 @@ static int do_more_prompt(int typed_char)
need_wait_return = FALSE; /* don't wait in main() */
}
FALLTHROUGH;
- case 'q': /* quit */
+ case 'q': // quit
case Ctrl_C:
case ESC:
if (confirm_msg_used) {
diff --git a/src/nvim/regexp.c b/src/nvim/regexp.c
index 1c63654b49..15a701f022 100644
--- a/src/nvim/regexp.c
+++ b/src/nvim/regexp.c
@@ -1805,7 +1805,7 @@ static char_u *regatom(int *flagp)
if (c == '[')
goto collection;
- /* "\_x" is character class plus newline */
+ // "\_x" is character class plus newline
FALLTHROUGH;
/*
@@ -5154,7 +5154,7 @@ regrepeat (
case IDENT:
case IDENT + ADD_NL:
- testval = TRUE;
+ testval = 1;
FALLTHROUGH;
case SIDENT:
case SIDENT + ADD_NL:
@@ -5181,7 +5181,7 @@ regrepeat (
case KWORD:
case KWORD + ADD_NL:
- testval = TRUE;
+ testval = 1;
FALLTHROUGH;
case SKWORD:
case SKWORD + ADD_NL:
@@ -5210,7 +5210,7 @@ regrepeat (
case FNAME:
case FNAME + ADD_NL:
- testval = TRUE;
+ testval = 1;
FALLTHROUGH;
case SFNAME:
case SFNAME + ADD_NL:
@@ -5238,7 +5238,7 @@ regrepeat (
case PRINT:
case PRINT + ADD_NL:
- testval = TRUE;
+ testval = 1;
FALLTHROUGH;
case SPRINT:
case SPRINT + ADD_NL:
@@ -5417,7 +5417,7 @@ do_class:
case ANYOF:
case ANYOF + ADD_NL:
- testval = TRUE;
+ testval = 1;
FALLTHROUGH;
case ANYBUT:
diff --git a/src/nvim/regexp_nfa.c b/src/nvim/regexp_nfa.c
index 854e7f9881..65ddcf3b07 100644
--- a/src/nvim/regexp_nfa.c
+++ b/src/nvim/regexp_nfa.c
@@ -1220,7 +1220,7 @@ static int nfa_regatom(void)
if (c == '[')
goto collection;
- /* "\_x" is character class plus newline */
+ // "\_x" is character class plus newline
FALLTHROUGH;
/*
@@ -3256,7 +3256,7 @@ static nfa_state_T *post2nfa(int *postfix, int *end, int nfa_calc_size)
break;
}
- case NFA_COMPOSING: /* char with composing char */
+ case NFA_COMPOSING: // char with composing char
FALLTHROUGH;
case NFA_MOPEN: /* \( \) Submatch */
diff --git a/src/nvim/window.c b/src/nvim/window.c
index 79a81e8c03..e541e4bb68 100644
--- a/src/nvim/window.c
+++ b/src/nvim/window.c
@@ -421,7 +421,7 @@ wingotofile:
case Ctrl_I:
type = FIND_ANY;
FALLTHROUGH;
- case 'd': /* Go to definition, using 'define' */
+ case 'd': // Go to definition, using 'define'
case Ctrl_D:
CHECK_CMDWIN
if ((len = find_ident_under_cursor(&ptr, FIND_IDENT)) == 0)