Don't allow '-' as part of an identifier token
This commit is contained in:
parent
23725ffafb
commit
bfa2691583
1 changed files with 1 additions and 1 deletions
|
|
@ -110,7 +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 == '-');
|
||||
READ_INTO_(in, buf, 255, c, length, std::isalnum(c) || c == '_');
|
||||
|
||||
value.set_string(buf);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue