mirror of
https://github.com/neovim/neovim.git
synced 2025-10-11 20:36:35 +00:00
refactor(uncrustify): set maximum number of consecutive newlines to 2 (#18695)
This commit is contained in:
@@ -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'.
|
||||
|
Reference in New Issue
Block a user