aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArto Bendiken <arto@bendiken.net>2016-01-17 10:22:26 +0000
committerDavid Robillard <d@drobilla.net>2016-01-17 17:01:10 -0500
commitb1be377295ab70e4462a02f1299d393bd9e07a17 (patch)
treef1af76fd711be258defd614bb3dd6632575f10aa
parent40bc1d4233edaba01d272078f295ad4586b6feb3 (diff)
downloadserd-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
-rw-r--r--src/reader.c2
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) == '-') {