From addbf69108c42e9c6bf93df8da36c96765cf5ca1 Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Wed, 26 Mar 2003 13:29:09 +0000 Subject: [PATCH] make parsing more generic --- plugins/keyboard/keysrc.l | 6 ------ 1 file changed, 6 deletions(-) diff --git a/plugins/keyboard/keysrc.l b/plugins/keyboard/keysrc.l index 258a23b9..08989f49 100644 --- a/plugins/keyboard/keysrc.l +++ b/plugins/keyboard/keysrc.l @@ -8,18 +8,12 @@ int kparselineno; field [A-Za-z0-9][-A-Za-z0-9]* number [0-9]+ -desktop [dD][eE][sS][kK][tT][oO][pP] -execute [eE][xX][eE][cC][uU][tT][eE] -restart [rR][eE][sS][tT][aA][rR][tT] string \"[^"\n]*\" %% ^[ \t]*#.*\n kparselineno++; {number} kparselval.integer = atoi(kparsetext); return INTEGER; -{execute} kparselval.string = g_strdup(kparsetext); return EXECUTE; -{restart} kparselval.string = g_strdup(kparsetext); return RESTART; -{desktop} kparselval.string = g_strdup(kparsetext); return DESKTOP; {field} kparselval.string = g_strdup(kparsetext); return FIELD; {string} { /* drop the quotes */ -- 2.45.2