dont set fields if in a comment

This commit is contained in:
Dana Jansens 2003-03-26 10:15:01 +00:00
parent 093c4cb710
commit 232e003094

View file

@ -37,16 +37,18 @@ white [ \t]*
static void gotfield() static void gotfield()
{ {
if (context == NULL) if (!comment) {
context = g_strdup(mparsetext); if (context == NULL)
else if (event == NULL) context = g_strdup(mparsetext);
event = g_strdup(mparsetext); else if (event == NULL)
else if (button == NULL) event = g_strdup(mparsetext);
button = g_strdup(mparsetext); else if (button == NULL)
else if (action == NULL) button = g_strdup(mparsetext);
action = g_strdup(mparsetext); else if (action == NULL)
else action = g_strdup(mparsetext);
error = TRUE; else
error = TRUE;
}
} }
static void endofline() static void endofline()