mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-21 13:34:40 +03:00
Allow strings in single quotes too
This commit is contained in:
parent
41102098e5
commit
efb63f4740
@ -599,6 +599,16 @@ static void _get_token(struct parser *p)
|
||||
p->te++;
|
||||
break;
|
||||
|
||||
case '\'':
|
||||
p->t = TOK_STRING;
|
||||
p->te++;
|
||||
while ((p->te != p->fe) && (*p->te) && (*p->te != '\''))
|
||||
p->te++;
|
||||
|
||||
if ((p->te != p->fe) && (*p->te))
|
||||
p->te++;
|
||||
break;
|
||||
|
||||
case '.':
|
||||
p->t = TOK_FLOAT;
|
||||
case '0':
|
||||
|
Loading…
Reference in New Issue
Block a user