aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/regexp.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/nvim/regexp.c')
-rw-r--r--src/nvim/regexp.c14
1 files changed, 0 insertions, 14 deletions
diff --git a/src/nvim/regexp.c b/src/nvim/regexp.c
index f0ccd19478..6b8c75e430 100644
--- a/src/nvim/regexp.c
+++ b/src/nvim/regexp.c
@@ -157,7 +157,6 @@ static char_u *reg_prev_sub = NULL;
static char REGEXP_INRANGE[] = "]^-n\\";
static char REGEXP_ABBR[] = "nrtebdoxuU";
-
/*
* Translate '\x' to its control character, except "\n", which is Magic.
*/
@@ -376,7 +375,6 @@ typedef struct {
int regnpar;
} parse_state_T;
-
static regengine_T bt_regengine;
static regengine_T nfa_regengine;
@@ -384,7 +382,6 @@ static regengine_T nfa_regengine;
# include "regexp.c.generated.h"
#endif
-
// Return true if compiled regular expression "prog" can match a line break.
int re_multiline(const regprog_T *prog)
FUNC_ATTR_NONNULL_ALL
@@ -414,7 +411,6 @@ static int get_equi_class(char_u **pp)
return 0;
}
-
/*
* Check for a collating element "[.a.]". "pp" points to the '['.
* Returns a character. Zero means that no item was recognized. Otherwise
@@ -540,7 +536,6 @@ char_u *skip_regexp(char_u *startp, int dirc, int magic, char_u **newp)
return p;
}
-
// variables used for parsing
static int prevchr_len; // byte length of previous char
static int at_start; // True when on the first character
@@ -591,7 +586,6 @@ static void restore_parse_state(parse_state_T *ps)
regnpar = ps->regnpar;
}
-
/*
* Get the next character without advancing.
*/
@@ -898,7 +892,6 @@ static int64_t getoctchrs(void)
return nr;
}
-
/*
* read_limits - Read two integers to be taken as a minimum and maximum.
* If the first character is '-', then the range is reversed.
@@ -1000,7 +993,6 @@ typedef struct {
int need_clear_zsubexpr; ///< extmatch subexpressions still need to be
///< cleared
-
// Internal copy of 'ignorecase'. It is set at each call to vim_regexec().
// Normally it gets the value of "rm_ic" or "rmm_ic", but when the pattern
// contains '\c' or '\C' the value is overruled.
@@ -1112,7 +1104,6 @@ static int reg_prev_class(void)
return -1;
}
-
// Return true if the current rex.input position matches the Visual area.
static bool reg_match_visual(void)
{
@@ -1245,7 +1236,6 @@ static void cleanup_zsubexpr(void)
}
}
-
// Advance rex.lnum, rex.line and rex.input to the next line.
static void reg_nextline(void)
{
@@ -1254,7 +1244,6 @@ static void reg_nextline(void)
fast_breakcheck();
}
-
/*
* Check whether a backreference matches.
* Returns RA_FAIL, RA_NOMATCH or RA_MATCH.
@@ -1511,7 +1500,6 @@ static inline char_u *cstrchr(const char_u *const s, const int c)
// This stuff below really confuses cc on an SGI -- webb
-
static fptr_T do_upper(int *d, int c)
{
*d = mb_toupper(c);
@@ -2081,7 +2069,6 @@ exit:
return (int)((dst - dest) + 1 - num_escaped);
}
-
/*
* Call reg_getline() with the line numbers from the submatch. If a
* substitute() was used the reg_maxline and other values have been
@@ -2378,7 +2365,6 @@ void vim_regfree(regprog_T *prog)
}
}
-
#if defined(EXITFREE)
void free_regexp_stuff(void)
{