merge formerly static ignore-overruling variables

This commit is contained in:
anon
2023-11-17 02:12:57 +01:00
parent 217f814aa4
commit fefa7f09c2
4 changed files with 5 additions and 4 deletions

View File

@ -8,8 +8,6 @@
std::stack<std::string> tag_stack;
std::string tag_candidate = "";
static int ignore_count = 1; // number of '{' / '}'s to be placed around the current ignored block
static int ignore_i = 1; // number of '}'s so far
static
void _ECHO_CANDIDATE(){

View File

@ -24,6 +24,8 @@ DECLARE_LEXER(csml);
DECLARE_LEXER(xml);
std::vector<std::string> ignore_list;
int ignore_count = 1;
int ignore_i = 1;
const char DEFAULT_QUOTE = '\'';
char quote = DEFAULT_QUOTE;

View File

@ -17,5 +17,8 @@ bool do_ignore(const std::string &current_tag) {
!= ignore_list.end();
}
extern int ignore_count; // number of '{' / '}'s to be placed around the current ignored block
extern int ignore_i; // number of '}'s so far
#define SCANNER_H
#endif

View File

@ -7,8 +7,6 @@ bool is_comment_multiline = false;
unsigned long long comment_begining;
std::string current_tag;
long ignore_start;
static int ignore_count = 1;
static int ignore_i = 1;
unsigned long long cursor_position = 0;
#define YY_USER_ACTION cursor_position += yyleng;