summaryrefslogtreecommitdiff
path: root/console-client/xkb/parser.y
diff options
context:
space:
mode:
Diffstat (limited to 'console-client/xkb/parser.y')
-rw-r--r--console-client/xkb/parser.y8
1 files changed, 7 insertions, 1 deletions
diff --git a/console-client/xkb/parser.y b/console-client/xkb/parser.y
index 18c14544..7ce504e5 100644
--- a/console-client/xkb/parser.y
+++ b/console-client/xkb/parser.y
@@ -1061,7 +1061,13 @@ symbolssect:
/* Returns a keysymbols, the numberic representation. */
symbolname:
IDENTIFIER { $$ = XStringToKeysym ($1); }
-| NUM { $$ = $1 + '0' }
+| NUM
+ {
+ if (($1 >= 0) && ($1 < 10))
+ $$ = $1 + '0';
+ else
+ $$ = $1;
+ }
| HEX { $$ = $1; }
;