table5.tex тоже разбирает теперича

This commit is contained in:
Kolan Sh 2011-06-28 17:17:03 +04:00
parent 46be388497
commit e291dbca64
1 changed files with 4 additions and 1 deletions

View File

@ -76,6 +76,8 @@ 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_COMMENT; where_stack[++tex_level] = IN_COMMENT;
} else if (isgraph(c) || c < 0) {
} else { } else {
error->code = (int)i; error->code = (int)i;
error->message = "unexpected symbol (IN_UDEF)"; error->message = "unexpected symbol (IN_UDEF)";
@ -94,7 +96,8 @@ int parse_table(const char *table_source, size_t len, struct table_s *table, str
if (isalnum(c)) { if (isalnum(c)) {
tag = zalloc_append8_str(tag, c); tag = zalloc_append8_str(tag, c);
} else if (!tag && (c == '\\' || c == ',' || c == '%')) { } else if (!tag && (c == '\\' || c == ','
|| c == '%' || c == '_')) {
where_stack[tex_level--] = IN_UNDEF; where_stack[tex_level--] = IN_UNDEF;
} else if (!tag) { } else if (!tag) {