mirror of
git://sourceware.org/git/lvm2.git
synced 2025-03-11 20:58:50 +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++;
|
p->te++;
|
||||||
break;
|
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 '.':
|
case '.':
|
||||||
p->t = TOK_FLOAT;
|
p->t = TOK_FLOAT;
|
||||||
case '0':
|
case '0':
|
||||||
|
Loading…
x
Reference in New Issue
Block a user