make parsing more generic
This commit is contained in:
parent
1fb5c4b595
commit
addbf69108
1 changed files with 0 additions and 6 deletions
|
@ -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 */
|
||||
|
|
Loading…
Reference in a new issue