From 232e0030943bd7c3b332aca8e05618558d08d297 Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Wed, 26 Mar 2003 10:15:01 +0000 Subject: [PATCH] dont set fields if in a comment --- plugins/mouse/mouserc_parse.l | 22 ++++++++++++---------- 1 file changed, 12 insertions(+), 10 deletions(-) diff --git a/plugins/mouse/mouserc_parse.l b/plugins/mouse/mouserc_parse.l index c00728c1..4b553081 100644 --- a/plugins/mouse/mouserc_parse.l +++ b/plugins/mouse/mouserc_parse.l @@ -37,16 +37,18 @@ white [ \t]* static void gotfield() { - if (context == NULL) - context = g_strdup(mparsetext); - else if (event == NULL) - event = g_strdup(mparsetext); - else if (button == NULL) - button = g_strdup(mparsetext); - else if (action == NULL) - action = g_strdup(mparsetext); - else - error = TRUE; + if (!comment) { + if (context == NULL) + context = g_strdup(mparsetext); + else if (event == NULL) + event = g_strdup(mparsetext); + else if (button == NULL) + button = g_strdup(mparsetext); + else if (action == NULL) + action = g_strdup(mparsetext); + else + error = TRUE; + } } static void endofline() -- 2.39.2