--- lex.l | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/lex.l b/lex.l index 37b88c3..6ef9134 100644 --- a/lex.l +++ b/lex.l @@ -30,7 +30,7 @@ %option nodebug %option UNPUT -KEYCODE "<"[A-Z][A-Z0-9]*">" +KEYCODE "<"[A-Z][-+A-Z0-9]*">" DIGIT [0-9] NUM {DIGIT}{DIGIT}* FLOAT {DIGIT}{DIGIT}*\.{DIGIT}{DIGIT}* @@ -91,6 +91,7 @@ level1 { yylval.val = 1; return LEVEL; } level2 { yylval.val = 2; return LEVEL; } level3 { yylval.val = 3; return LEVEL; } level4 { yylval.val = 4; return LEVEL; } +level[1-9][0-9]* { yylval.val = atoi(yytext + 5); return LEVEL; } /* Groups. */ group1 { yylval.val = 1; return GROUPNUM; } -- 1.7.2
- [PATCH 0/8] Bring console-driver-xkb up to date Diego Nieto Cid
- [PATCH 1/8] Update the parser to work with current XK... Diego Nieto Cid
- Re: [PATCH 1/8] Update the parser to work with cu... olafBuddenhagen
- Re: [PATCH 1/8] Update the parser to work Diego Nieto Cid
- [PATCH 1/5] Add type to $$ in mid-rules. Diego Nieto Cid
- [PATCH 2/5] Lexer support for keycodes wi... Diego Nieto Cid
- [PATCH 4/5] Update key type assigment rou... Diego Nieto Cid
- [PATCH 3/5] Skip to main file's default s... Diego Nieto Cid
- [PATCH 5/5] Recreate xkb/keymap/hurd from... Diego Nieto Cid
- [PATCH 8/8] Use vfprintf in debug_printf and write to... Diego Nieto Cid
- Re: [PATCH 8/8] Use vfprintf in debug_printf and ... olafBuddenhagen
- [PATCH 3/8] Rule vmod returns an int with the vmod's ... Diego Nieto Cid
- [PATCH 5/8] Update code borrowed from console-client. Diego Nieto Cid
- [PATCH 2/8] Avoid hashing garbage for short keynames. Diego Nieto Cid
- Re: [PATCH 2/8] Avoid hashing garbage for short k... olafBuddenhagen
- Re: [PATCH 2/8] Avoid hashing garbage for sho... Diego Nieto Cid