add : in as a delimiter so you can do:

name, "blah name";

OR ALSO

name: "blah name";


SVN revision: 8447
This commit is contained in:
Carsten Haitzler 2004-01-16 00:51:43 +00:00
parent 4436026ac6
commit bd791501dd
2 changed files with 3 additions and 2 deletions

View File

@ -13,6 +13,7 @@ images
// data can be attached to the edje file as a whole. string key, value style
data
{
item: "Key" "This is a"" continued string";
item, "My Data" "The string to attach to this data";
item, "The Key" "String data attached to the key";
}

View File

@ -77,7 +77,7 @@ new_statement(void)
static int
isdelim(char c)
{
const char *delims = "{},;";
const char *delims = "{},;:";
char *d;
d = (char *)delims;
@ -308,7 +308,7 @@ parse(char *data, off_t size)
{
if (delim)
{
if (!strcmp(token, ",")) do_params = 1;
if ((!strcmp(token, ",")) || (!strcmp(token, ":"))) do_params = 1;
else if (!strcmp(token, "}"))
{
if (do_params)