summaryrefslogtreecommitdiff
path: root/console-client/xkb
diff options
context:
space:
mode:
authorDiego Nieto Cid <dnietoc@gmail.com>2010-10-22 00:36:51 -0300
committerDiego Nieto Cid <dnietoc@gmail.com>2011-04-08 14:36:21 -0300
commitb43f2407b8f08910d3937bf3ab3c84f37687d07b (patch)
tree74c215e65ba6fc6c313b49fa1d0ad2cc88300dbf /console-client/xkb
parentf9570fcd6bdd63dd9db34e4588e4c339566ff60b (diff)
Symbols 0..9 stand for their ascii character.
* console-client/xkb/parser.y(symbolname): Shift by '0' numbers [0..9].
Diffstat (limited to 'console-client/xkb')
-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; }
;