From 791599909ebbfd6fa9637d8d4cc937205e67b045 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Thu, 11 Dec 2014 16:10:17 +0100 Subject: mds-kbdc: minor bug fixes MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- src/mds-kbdc/compile-layout.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/mds-kbdc/compile-layout.c') diff --git a/src/mds-kbdc/compile-layout.c b/src/mds-kbdc/compile-layout.c index 007f6ae..dc4fa75 100644 --- a/src/mds-kbdc/compile-layout.c +++ b/src/mds-kbdc/compile-layout.c @@ -524,7 +524,8 @@ static size_t check_function_calls_in_literal_(const mds_kbdc_tree_t* restrict t if (escape) { escape = 0; - if ((c == '_') || R('a', 'z') || R('A', 'Z')) + if (((c == '_') || R('a', 'z') || R('A', 'Z')) &&(c != 'u')) + /* \u*() is disallowed because \u* is used for hexadecimal representation. */ if (check_function_call(tree, raw - 2, lineoff + (size_t)(raw - 2 - raw_), &raw, rc), *rc < 0) break; } -- cgit v1.2.3-70-g09d2