diff options
author | Dave Beckett <dave@dajobe.org> | 2001-07-22 22:47:38 +0000 |
---|---|---|
committer | Dave Beckett <dave@dajobe.org> | 2001-07-22 22:47:38 +0000 |
commit | c19dea92c9911a1391399134137c055dde26fccc (patch) | |
tree | 8406700949e6bc57f61d267ecd6f077d2ad38a53 /src | |
parent | 85b18259d9135165369d9bb284d98a0ad3074bd6 (diff) | |
download | raptor-c19dea92c9911a1391399134137c055dde26fccc.tar.gz |
Make _:name not include _: in name
Diffstat (limited to 'src')
-rw-r--r-- | src/ntriples_parse.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/ntriples_parse.c b/src/ntriples_parse.c index 2af8b54d..cb361f7a 100644 --- a/src/ntriples_parse.c +++ b/src/ntriples_parse.c @@ -483,9 +483,6 @@ raptor_ntriples_parse_line (raptor_ntriples_parser* parser, char *buffer, case '_': term_types[i]= RAPTOR_NTRIPLES_TERM_TYPE_ANON_NODE; - /* NOTE: here: start includes _ */ - start=p; - p++; len--; parser->locator.column++; @@ -502,6 +499,9 @@ raptor_ntriples_parse_line (raptor_ntriples_parser* parser, char *buffer, parser->locator.column++; parser->locator.byte++; + /* start after _: */ + start=p; + while(len>0 && isalnum(*p)) { p++; len--; |