merge formerly static ignore-overruling variables
This commit is contained in:
@ -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(){
|
||||
|
@ -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;
|
||||
|
@ -17,5 +17,8 @@ bool do_ignore(const std::string ¤t_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
|
||||
|
@ -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;
|
||||
|
Reference in New Issue
Block a user