From def4939c34e1e2ce5e48ce6244e82a681317b893 Mon Sep 17 00:00:00 2001 From: Daniel Karbach Date: Mon, 5 Oct 2015 17:31:18 +0200 Subject: [PATCH] allow dots in identifiers anywhere except at the beginning --- src/io/token.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.39.2