diff options
author | Arto Bendiken <arto@bendiken.net> | 2016-01-17 10:22:26 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2016-01-17 17:01:10 -0500 |
commit | b1be377295ab70e4462a02f1299d393bd9e07a17 (patch) | |
tree | f1af76fd711be258defd614bb3dd6632575f10aa /src/reader.c | |
parent | 40bc1d4233edaba01d272078f295ad4586b6feb3 (diff) | |
download | serd-b1be377295ab70e4462a02f1299d393bd9e07a17.tar.gz serd-b1be377295ab70e4462a02f1299d393bd9e07a17.tar.bz2 serd-b1be377295ab70e4462a02f1299d393bd9e07a17.zip |
Support mixed-case language tags
See: https://www.w3.org/TR/turtle/#grammar-production-LANGTAG
Diffstat (limited to 'src/reader.c')
-rw-r--r-- | src/reader.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/reader.c b/src/reader.c index 3e859765..e49c2a10 100644 --- a/src/reader.c +++ b/src/reader.c @@ -761,7 +761,7 @@ read_LANGTAG(SerdReader* reader) } Ref ref = push_node(reader, SERD_LITERAL, "", 0); push_byte(reader, ref, eat_byte_safe(reader, c)); - while ((c = peek_byte(reader)) && in_range(c, 'a', 'z')) { + while ((c = peek_byte(reader)) && is_alpha(c)) { push_byte(reader, ref, eat_byte_safe(reader, c)); } while (peek_byte(reader) == '-') { |