diff options
| author | Dana Jansens <danakj@orodu.net> | 2003-03-26 10:15:01 +0000 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2003-03-26 10:15:01 +0000 |
| commit | 232e0030943bd7c3b332aca8e05618558d08d297 (patch) | |
| tree | 21f84443f115a41eb98a88d8b9a47c8dae97f363 /plugins/mouse/mouserc_parse.l | |
| parent | 093c4cb710fa04dc67fc93278b951038b263a1fc (diff) | |
dont set fields if in a comment
Diffstat (limited to 'plugins/mouse/mouserc_parse.l')
| -rw-r--r-- | plugins/mouse/mouserc_parse.l | 22 |
1 files 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() |
