1
0
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:
Alasdair Kergon 2003-01-28 17:20:11 +00:00
parent 41102098e5
commit efb63f4740

View File

@ -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':