Changeset f8c8f7e in serd


Ignore:
Timestamp:
Sep 23, 2017, 6:59:22 AM (8 weeks ago)
Author:
David Robillard <d@…>
Branches:
master, serd1
Children:
78f3828
Parents:
7f965c4
git-author:
David Robillard <d@…> (09/23/17 05:42:00)
git-committer:
David Robillard <d@…> (09/23/17 06:59:22)
Message:

Report errors for all failing test cases

Files:
2 edited

Legend:

Unmodified
Added
Removed
  • NEWS

    r7f965c4 rf8c8f7e  
    1 serd (0.29.2) unstable;
     1serd (0.29.3) unstable;
    22
    33  * Support strict parsing of prefixed names
    4   * Report errors for directives or abbreviations in NTriples or NQuads
    5   * Report errors for prematurely terminated statements
     4  * Report errors for all failing test cases
    65  * Fix building with MSVC
    76
    8  -- David Robillard <d@drobilla.net>  Sat, 23 Sep 2017 13:54:10 +0200
     7 -- David Robillard <d@drobilla.net>  Sat, 23 Sep 2017 14:41:49 +0200
    98
    109serd (0.28.0) stable;
  • src/reader.c

    r7f965c4 rf8c8f7e  
    15621562        ctx->subject = 0;
    15631563        Ref subj = read_subject(reader, *ctx, &ctx->subject, &s_type);
    1564         if (!subj ||
    1565             (!read_triples(reader, *ctx, &ate_dot) && s_type != '[')) {
     1564        if (!subj && ctx->subject) {
     1565            return r_err(reader, SERD_ERR_BAD_SYNTAX, "bad subject\n");
     1566        } else if (!subj) {
    15661567            return false;
     1568        } else if (!read_triples(reader, *ctx, &ate_dot) && s_type != '[') {
     1569            return r_err(reader, SERD_ERR_BAD_SYNTAX,
     1570                         "missing predicate object list\n");
    15671571        }
    15681572        pop_node(reader, subj);
     
    16381642        } else if (read_ws_star(reader) && peek_byte(reader) == '{') {
    16391643            if (s_type == '(' || (s_type == '[' && !*ctx.flags)) {
    1640                 return false;  // invalid graph with complex label
     1644                return r_err(reader, SERD_ERR_BAD_SYNTAX,
     1645                             "invalid graph name\n");
    16411646            }
    16421647            ctx.graph   = subj;
Note: See TracChangeset for help on using the changeset viewer.