8000 Fix issue handling multi-line tempated strings pasted to REPL (2v26 r… · espruino/Espruino@2c62ad0 · GitHub
[go: up one dir, main page]

Skip to content

Commit 2c62ad0

Browse files
committed
Fix issue handling multi-line tempated strings pasted to REPL (2v26 regression)
1 parent 38bcf2c commit 2c62ad0

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

ChangeLog

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
Ensure jshPushIOCharEvent is more stable when the FIFO is full
55
Bangle.js: g.findFont now attempts to use Intl:2 if there's room. Also fix memory leak
66
nRF52840: Add E.getVDDH() method to get VDDH voltage
7+
Fix issue handling multi-line tempated strings pasted to REPL (2v26 regression)
78

89
2v26 : nRF5x: ensure TIMER1_IRQHandler doesn't always wake idle loop up (fix #1900)
910
Puck.js: On v2.1 ensure Puck.mag behaves like other variants - just returning the last reading (avoids glitches when used with Puck.magOn)

src/jslex.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -505,7 +505,7 @@ static void jslLexString() {
505505
else lex->tk = LEX_STR;
506506
// unfinished strings
507507
if (lex->currCh!=delim)
508-
lex->tk++; // +1 gets you to 'unfinished X'
508+
lex->tk = (delim=='`') ? LEX_UNFINISHED_TEMPLATE_LITERAL : LEX_UNFINISHED_STR;
509509
jslGetNextCh();
510510
}
511511

0 commit comments

Comments
 (0)
0