summaryrefslogtreecommitdiff
path: root/py/lexer.c
diff options
context:
space:
mode:
authorScott Shawcroft <scott@tannewt.org>2018-08-08 18:24:49 -0700
committerScott Shawcroft <scott@tannewt.org>2018-08-09 13:29:30 -0700
commit96ebf5bc3fb455162286b9bc31e763f3c4f1c457 (patch)
tree3d06bc866bcf943a0e0ea881a1fcab9826291a1c /py/lexer.c
parent9da79c880e387ab05a683b67feb8f3da600d937d (diff)
Two fixes and translate more strings.
* Fix finding translations with escaped characters. * Add back \r to translations since its needed by screen.
Diffstat (limited to 'py/lexer.c')
-rw-r--r--py/lexer.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/py/lexer.c b/py/lexer.c
index e161700b1..755fa625b 100644
--- a/py/lexer.c
+++ b/py/lexer.c
@@ -32,6 +32,8 @@
#include "py/lexer.h"
#include "py/runtime.h"
+#include "supervisor/shared/translate.h"
+
#if MICROPY_ENABLE_COMPILER
#define TAB_SIZE (8)
@@ -340,7 +342,7 @@ STATIC void parse_string_literal(mp_lexer_t *lex, bool is_raw) {
// 3MB of text; even gzip-compressed and with minimal structure, it'll take
// roughly half a meg of storage. This form of Unicode escape may be added
// later on, but it's definitely not a priority right now. -- CJA 20140607
- mp_raise_NotImplementedError("unicode name escapes");
+ mp_raise_NotImplementedError(translate("unicode name escapes"));
break;
default:
if (c >= '0' && c <= '7') {