summaryrefslogtreecommitdiff
path: root/src/token.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/token.cc')
-rw-r--r--src/token.cc12
1 files changed, 8 insertions, 4 deletions
diff --git a/src/token.cc b/src/token.cc
index 0fd2c25a..a2046924 100644
--- a/src/token.cc
+++ b/src/token.cc
@@ -110,8 +110,7 @@ void expr_t::token_t::parse_ident(std::istream& in)
length = 0;
char c, buf[256];
- READ_INTO_(in, buf, 255, c, length,
- std::isalnum(c) || c == '_' || c == '.' || c == '-');
+ READ_INTO_(in, buf, 255, c, length, std::isalnum(c) || c == '_' || c == '-');
value.set_string(buf);
}
@@ -280,8 +279,8 @@ void expr_t::token_t::next(std::istream& in, const uint_least8_t pflags)
in.get(c);
length++;
- kind = MASK;
- value.set_string(buf);
+ kind = VALUE;
+ value.set_mask(buf);
}
break;
}
@@ -334,6 +333,11 @@ void expr_t::token_t::next(std::istream& in, const uint_least8_t pflags)
kind = GREATER;
break;
+ case '.':
+ in.get(c);
+ kind = DOT;
+ break;
+
case ',':
in.get(c);
kind = COMMA;