aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/regexp_bt.c
diff options
context:
space:
mode:
authordundargoc <33953936+dundargoc@users.noreply.github.com>2022-05-25 20:31:14 +0200
committerGitHub <noreply@github.com>2022-05-25 12:31:14 -0600
commit9fec6dc9a25b5cf9c9a444ac2bd0728e8af3229e (patch)
tree83e044109d61242150b8c98897e179416025f576 /src/nvim/regexp_bt.c
parent8c4e62351f67dd6a44f67f3a2b6f3a3551acf475 (diff)
downloadrneovim-9fec6dc9a25b5cf9c9a444ac2bd0728e8af3229e.tar.gz
rneovim-9fec6dc9a25b5cf9c9a444ac2bd0728e8af3229e.tar.bz2
rneovim-9fec6dc9a25b5cf9c9a444ac2bd0728e8af3229e.zip
refactor(uncrustify): set maximum number of consecutive newlines to 2 (#18695)
Diffstat (limited to 'src/nvim/regexp_bt.c')
-rw-r--r--src/nvim/regexp_bt.c12
1 files changed, 0 insertions, 12 deletions
diff --git a/src/nvim/regexp_bt.c b/src/nvim/regexp_bt.c
index c13c2c6832..03e4d74f14 100644
--- a/src/nvim/regexp_bt.c
+++ b/src/nvim/regexp_bt.c
@@ -43,7 +43,6 @@
* Named character class support added by Walter Briscoe (1998 Jul 01)
*/
-
/*
* The "internal use only" fields in regexp_defs.h are present to pass info from
* compile to execute that permits the execute phase to run lots faster on
@@ -173,7 +172,6 @@
#define NEWL 18 // Match line-break
#define BHPOS 19 // End position for BEHIND or NOBEHIND
-
// character classes: 20-48 normal, 50-78 include a line-break
#define ADD_NL 30
#define FIRST_NL ANY + ADD_NL
@@ -252,7 +250,6 @@
#define HASLOOKBH 0x10 // Contains "\@<=" or "\@<!".
#define WORST 0 // Worst case.
-
static int prevchr_len; ///< byte length of previous char
static int num_complex_braces; ///< Complex \{...} count
static char_u *regcode; ///< Code-emit pointer, or JUST_CALC_SIZE
@@ -346,7 +343,6 @@ typedef struct regitem_S {
} rs_un; // room for saving rex.input
} regitem_T;
-
// used for STAR, PLUS and BRACE_SIMPLE matching
typedef struct regstar_S {
int nextb; // next byte
@@ -443,7 +439,6 @@ static char_u *reg(int paren, int *flagp);
static void regdump(char_u *, bt_regprog_T *);
#endif
-
#ifdef REGEXP_DEBUG
static char_u *regprop(char_u *);
@@ -454,7 +449,6 @@ static int regnarrate = 0;
# include "regexp_bt.c.generated.h"
#endif
-
/*
* Setup to parse the regexp. Used once to get the length and once to do it.
*/
@@ -490,7 +484,6 @@ static bool use_multibytecode(int c)
|| utf_iscomposing(c));
}
-
/*
* Emit (if appropriate) a byte of code
*/
@@ -515,7 +508,6 @@ static void regmbc(int c)
}
}
-
/*
* Produce the bytes for equivalence class "c".
* Currently only handles latin1, latin9 and utf-8.
@@ -1489,7 +1481,6 @@ static void reg_equi_class(int c)
regmbc(c);
}
-
/*
* Emit a node.
* Return pointer to generated code.
@@ -1596,7 +1587,6 @@ static void regoptail(char_u *p, char_u *val)
regtail(OPERAND(p), val);
}
-
/*
* Insert an operator in front of already-emitted operand
*
@@ -2877,7 +2867,6 @@ static char_u *reg(int paren, int *flagp)
return ret;
}
-
/*
* bt_regcomp() - compile a regular expression into internal code for the
* traditional back track matcher.
@@ -5223,7 +5212,6 @@ static int bt_regexec_nl(regmatch_T *rmp, char_u *line, colnr_T col, bool line_l
return (int)r;
}
-
/// Matches a regexp against multiple lines.
/// "rmp->regprog" is a compiled regexp as returned by vim_regcomp().
/// Uses curbuf for line count and 'iskeyword'.