дошли до 1312-го символа ó

This commit is contained in:
Kolan Sh 2011-06-27 16:28:01 +04:00
parent 64c18d6652
commit b3355c88fa
1 changed files with 47 additions and 3 deletions

View File

@ -263,7 +263,7 @@ int parse_table(const char *table_source, size_t len, struct table_s *table, str
} else if (c == '}') {
where_stack[tex_level--] = IN_UNDEF;
} else if (isalnum(c) || c == '#') {
} else if (isalnum(c) || c == '#' || c == '|' || c == '>') {
} else {
error->code = (int)i;
@ -293,7 +293,7 @@ int parse_table(const char *table_source, size_t len, struct table_s *table, str
} else {
error->code = (int)i;
error->message = "unexpected symbol (IN_TAG_UNKNOWN)";
error->message = "unexpected symbol (IN_TAG_BEGIN)";
return error->code;
}
break;
@ -315,7 +315,29 @@ int parse_table(const char *table_source, size_t len, struct table_s *table, str
break;
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;
case IN_TAG_HSPACE:
@ -323,7 +345,29 @@ int parse_table(const char *table_source, size_t len, struct table_s *table, str
break;
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;
case IN_TAG_MULTIROW:
@ -351,7 +395,7 @@ int parse_table(const char *table_source, size_t len, struct table_s *table, str
} else {
error->code = (int)i;
error->message = "unexpected symbol (IN_TAG_UNKNOWN)";
error->message = "unexpected symbol (IN_TAG_TABULARNEWLINE)";
return error->code;
}
break;