дошли до 1052-го символа symb=|
This commit is contained in:
parent
5ab84349b7
commit
64c18d6652
|
@ -273,27 +273,27 @@ int parse_table(const char *table_source, size_t len, struct table_s *table, str
|
|||
break;
|
||||
|
||||
case IN_TAG_BEGIN:
|
||||
if (isspace(c)) {
|
||||
|
||||
} else if (c == '{' || c == '[') { // tag params
|
||||
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;
|
||||
|
||||
if (FALSE) { // longtable
|
||||
}
|
||||
|
||||
} 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_BEGIN)";
|
||||
error->message = "unexpected symbol (IN_TAG_UNKNOWN)";
|
||||
return error->code;
|
||||
}
|
||||
break;
|
||||
|
@ -331,7 +331,29 @@ int parse_table(const char *table_source, size_t len, struct table_s *table, str
|
|||
break;
|
||||
|
||||
case IN_TAG_TABULARNEWLINE:
|
||||
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_UNKNOWN)";
|
||||
return error->code;
|
||||
}
|
||||
break;
|
||||
|
||||
case IN_TAG_SLASH:
|
||||
|
|
Loading…
Reference in New Issue