+2002-11-10 [hoa] 0.8.5claws115
+
+ * src/matcher_parser_lex.l
+ * src/matcher_parser_parse.y
+ config file for scoring and filtering is no more trashed
+ when there is a syntax error in a filtering rule when
+ editing it in a dialog.
+
2002-11-09 [colin] 0.8.5claws114
* src/mbox_folder.c
if (string_buf_ptr - string_buf < sizeof(string_buf))
*string_buf_ptr++ = ch;
}
+
+
+/* this function will reinitializes the parser */
+
+void matcher_parser_init(void)
+{
+ BEGIN(0);
+}
%}
%option prefix="matcher_parser"
in yacc */
matcher_parserlineno = 1;
matcher_parser_dialog = 1;
+ matcher_parserrestart(NULL);
+ matcher_parser_init();
bufstate = matcher_parser_scan_string(str);
+ matcher_parser_switch_to_buffer(bufstate);
if (matcher_parserparse() != 0)
filtering = NULL;
matcher_parser_dialog = 0;
in yacc */
matcher_parserlineno = 1;
matcher_parser_dialog = 1;
+ matcher_parserrestart(NULL);
+ matcher_parser_init();
bufstate = matcher_parser_scan_string(str);
+ matcher_parser_switch_to_buffer(bufstate);
if (matcher_parserparse() != 0)
scoring = NULL;
matcher_parser_dialog = 0;
in yacc */
matcher_parserlineno = 1;
matcher_parser_dialog = 1;
+ matcher_parserrestart(NULL);
+ matcher_parser_init();
bufstate = matcher_parser_scan_string(str);
matcher_parserparse();
matcher_parser_dialog = 0;