aboutsummaryrefslogtreecommitdiff
path: root/sys/libbio/io/newick.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/libbio/io/newick.c')
-rw-r--r--sys/libbio/io/newick.c12
1 files changed, 11 insertions, 1 deletions
diff --git a/sys/libbio/io/newick.c b/sys/libbio/io/newick.c
index fb8e763..6370686 100644
--- a/sys/libbio/io/newick.c
+++ b/sys/libbio/io/newick.c
@@ -121,6 +121,17 @@ lex(io·Peeker s, void* fp)
tok.lit.x = atof(b);
return tok;
+ case '\"':
+ while ((*c) != '\"') {
+ *(++c) = s.get(fp);
+ }
+ Assert(c - b < 1024);
+
+ *c = '\0';
+ tok.kind = tok·ident;
+ tok.lit.s = b + 1;
+ return tok;
+
default:
IDENT:
while (isvalidchar(*c)) {
@@ -132,7 +143,6 @@ lex(io·Peeker s, void* fp)
*c = '\0';
tok.kind = tok·ident;
tok.lit.s = b;
- printf("setting name to '%s'\n", b);
return tok;
}
#undef isvalidchar