до 523-его # дошли

This commit is contained in:
Kolan Sh 2011-06-27 15:54:00 +04:00
parent be3dbe915f
commit ebd4e654ef
1 changed files with 5 additions and 3 deletions

View File

@ -213,6 +213,7 @@ int parse_table(const char *table_source, size_t len, struct table_s *table, str
} else { } else {
where_stack[tex_level--] = IN_UNDEF; where_stack[tex_level--] = IN_UNDEF;
i--;
} }
break; break;
@ -243,9 +244,7 @@ int parse_table(const char *table_source, size_t len, struct table_s *table, str
break; break;
case IN_TAG_UNKNOWN: case IN_TAG_UNKNOWN:
if (isspace(c)) { if (c == '{' || c == '[') { // tag params
} else if (c == '{' || c == '[') { // tag params
where_stack[++tex_level] = IN_TAGPARM; where_stack[++tex_level] = IN_TAGPARM;
} else if (c == '\\') { // new tag } 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)) { } else if (isspace(c)) {
where_stack[++tex_level] = IN_SPACE; where_stack[++tex_level] = IN_SPACE;
} else if (c == '}') {
where_stack[tex_level--] = IN_UNDEF;
} else { } else {
error->code = (int)i; error->code = (int)i;
error->message = "unexpected symbol (IN_TAG_UNKNOWN)"; error->message = "unexpected symbol (IN_TAG_UNKNOWN)";