дошли до 1312-го символа ó
This commit is contained in:
parent
64c18d6652
commit
b3355c88fa
@ -263,7 +263,7 @@ int parse_table(const char *table_source, size_t len, struct table_s *table, str
|
|||||||
} else if (c == '}') {
|
} else if (c == '}') {
|
||||||
where_stack[tex_level--] = IN_UNDEF;
|
where_stack[tex_level--] = IN_UNDEF;
|
||||||
|
|
||||||
} else if (isalnum(c) || c == '#') {
|
} else if (isalnum(c) || c == '#' || c == '|' || c == '>') {
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
error->code = (int)i;
|
error->code = (int)i;
|
||||||
@ -293,7 +293,7 @@ int parse_table(const char *table_source, size_t len, struct table_s *table, str
|
|||||||
|
|
||||||
} else {
|
} else {
|
||||||
error->code = (int)i;
|
error->code = (int)i;
|
||||||
error->message = "unexpected symbol (IN_TAG_UNKNOWN)";
|
error->message = "unexpected symbol (IN_TAG_BEGIN)";
|
||||||
return error->code;
|
return error->code;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
@ -315,7 +315,29 @@ int parse_table(const char *table_source, size_t len, struct table_s *table, str
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
case IN_TAG_HLINE:
|
case IN_TAG_HLINE:
|
||||||
|
if (c == '{' || c == '[') { // tag params
|
||||||
|
where_stack[++tex_level] = IN_TAGPARM;
|
||||||
|
|
||||||
|
} else if (c == '\\') { // new tag
|
||||||
|
tag = zfree_null(tag);
|
||||||
|
where_stack[tex_level] = IN_TAG;
|
||||||
|
|
||||||
|
} else if (c == '%') {
|
||||||
|
where_stack[++tex_level] = IN_COMMENT;
|
||||||
|
|
||||||
|
} else if (isspace(c)) {
|
||||||
|
where_stack[++tex_level] = IN_SPACE;
|
||||||
|
|
||||||
|
} else if (c == '}') {
|
||||||
|
where_stack[tex_level--] = IN_UNDEF;
|
||||||
|
|
||||||
|
} else if (isalnum(c) || c == '#') {
|
||||||
|
|
||||||
|
} else {
|
||||||
|
error->code = (int)i;
|
||||||
|
error->message = "unexpected symbol (IN_TAG_HLINE)";
|
||||||
|
return error->code;
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case IN_TAG_HSPACE:
|
case IN_TAG_HSPACE:
|
||||||
@ -323,7 +345,29 @@ int parse_table(const char *table_source, size_t len, struct table_s *table, str
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
case IN_TAG_MULTICOLUMN:
|
case IN_TAG_MULTICOLUMN:
|
||||||
|
if (c == '{' || c == '[') { // tag params
|
||||||
|
where_stack[++tex_level] = IN_TAGPARM;
|
||||||
|
|
||||||
|
} else if (c == '\\') { // new tag
|
||||||
|
tag = zfree_null(tag);
|
||||||
|
where_stack[tex_level] = IN_TAG;
|
||||||
|
|
||||||
|
} else if (c == '%') {
|
||||||
|
where_stack[++tex_level] = IN_COMMENT;
|
||||||
|
|
||||||
|
} else if (isspace(c)) {
|
||||||
|
where_stack[++tex_level] = IN_SPACE;
|
||||||
|
|
||||||
|
} else if (c == '}') {
|
||||||
|
where_stack[tex_level--] = IN_UNDEF;
|
||||||
|
|
||||||
|
} else if (isalnum(c) || c == '#') {
|
||||||
|
|
||||||
|
} else {
|
||||||
|
error->code = (int)i;
|
||||||
|
error->message = "unexpected symbol (IN_TAG_MULTICOLUMN)";
|
||||||
|
return error->code;
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case IN_TAG_MULTIROW:
|
case IN_TAG_MULTIROW:
|
||||||
@ -351,7 +395,7 @@ int parse_table(const char *table_source, size_t len, struct table_s *table, str
|
|||||||
|
|
||||||
} else {
|
} else {
|
||||||
error->code = (int)i;
|
error->code = (int)i;
|
||||||
error->message = "unexpected symbol (IN_TAG_UNKNOWN)";
|
error->message = "unexpected symbol (IN_TAG_TABULARNEWLINE)";
|
||||||
return error->code;
|
return error->code;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user