From: Daniel Karbach Date: Mon, 5 Oct 2015 15:31:18 +0000 (+0200) Subject: allow dots in identifiers X-Git-Url: http://git.localhorst.tv/?a=commitdiff_plain;h=def4939c34e1e2ce5e48ce6244e82a681317b893;p=blank.git allow dots in identifiers anywhere except at the beginning --- diff --git a/src/io/token.cpp b/src/io/token.cpp index cf3ac3b..b462df7 100644 --- a/src/io/token.cpp +++ b/src/io/token.cpp @@ -174,7 +174,7 @@ void Tokenizer::ReadIdentifier() { istream::char_type c; while (in.get(c)) { - if (isalnum(c) || c == '_') { + if (isalnum(c) || c == '_' || c == '.') { current.value += c; } else { in.putback(c);