mirror of
git://sourceware.org/git/lvm2.git
synced 2025-07-21 16:58:57 +03:00
Allow strings in single quotes too
This commit is contained in:
@ -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':
|
||||
|
Reference in New Issue
Block a user