aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2012-07-17 16:01:17 +0000
committerDavid Robillard <d@drobilla.net>2012-07-17 16:01:17 +0000
commit79dc6df5c5535569cee81a3f71c79642c4a3309f (patch)
tree9e05636e844bb723d2f3a9631d8808e8a2e44cb5 /src
parent6fc8a337afad525989fe607832be968e0e681651 (diff)
downloadserd-79dc6df5c5535569cee81a3f71c79642c4a3309f.tar.gz
serd-79dc6df5c5535569cee81a3f71c79642c4a3309f.tar.bz2
serd-79dc6df5c5535569cee81a3f71c79642c4a3309f.zip
Support digits at start of local names as per new grammar.
git-svn-id: http://svn.drobilla.net/serd/trunk@360 490d8e77-9747-427b-9fa3-0b8f29cee8a0
Diffstat (limited to 'src')
-rw-r--r--src/reader.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/reader.c b/src/reader.c
index d66dbb09..ac9d3778 100644
--- a/src/reader.c
+++ b/src/reader.c
@@ -685,7 +685,7 @@ static inline uchar
read_nameStartChar(SerdReader* reader)
{
const uint8_t c = peek_byte(reader);
- if (c == '_' || is_alpha(c)) { // TODO: not strictly correct
+ if (c == '_' || is_alpha(c) || is_digit(c)) { // TODO: Not correct
return eat_byte_safe(reader, c);
}
return 0;