]> git.localhorst.tv Git - blank.git/commitdiff
allow dots in identifiers
authorDaniel Karbach <daniel.karbach@localhorst.tv>
Mon, 5 Oct 2015 15:31:18 +0000 (17:31 +0200)
committerDaniel Karbach <daniel.karbach@localhorst.tv>
Mon, 5 Oct 2015 15:31:18 +0000 (17:31 +0200)
anywhere except at the beginning

src/io/token.cpp

index cf3ac3b97ec87e7af45f94252807fc2bfb8237cd..b462df778b593ee11927d6e80da46031b530b709 100644 (file)
@@ -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);