]> Dogcows Code - chaz/openbox/commitdiff
make parsing more generic
authorDana Jansens <danakj@orodu.net>
Wed, 26 Mar 2003 13:29:09 +0000 (13:29 +0000)
committerDana Jansens <danakj@orodu.net>
Wed, 26 Mar 2003 13:29:09 +0000 (13:29 +0000)
plugins/keyboard/keysrc.l

index 258a23b9c4b3933e16acacbdd1af5907f4d50c6e..08989f496a793b47bd9527fa7b6473856eb22bf7 100644 (file)
@@ -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 */
This page took 0.023135 seconds and 4 git commands to generate.