до 523-его # дошли
This commit is contained in:
parent
be3dbe915f
commit
ebd4e654ef
|
@ -213,6 +213,7 @@ int parse_table(const char *table_source, size_t len, struct table_s *table, str
|
|||
|
||||
} else {
|
||||
where_stack[tex_level--] = IN_UNDEF;
|
||||
i--;
|
||||
}
|
||||
break;
|
||||
|
||||
|
@ -243,9 +244,7 @@ int parse_table(const char *table_source, size_t len, struct table_s *table, str
|
|||
break;
|
||||
|
||||
case IN_TAG_UNKNOWN:
|
||||
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
|
||||
|
@ -258,6 +257,9 @@ int parse_table(const char *table_source, size_t len, struct table_s *table, str
|
|||
} else if (isspace(c)) {
|
||||
where_stack[++tex_level] = IN_SPACE;
|
||||
|
||||
} else if (c == '}') {
|
||||
where_stack[tex_level--] = IN_UNDEF;
|
||||
|
||||
} else {
|
||||
error->code = (int)i;
|
||||
error->message = "unexpected symbol (IN_TAG_UNKNOWN)";
|
||||
|
|
Loading…
Reference in New Issue