Here is a simple test case.
function main()
{
var s = "\"";
}
And here is the compile error.
line 4:15 token recognition error at: '";\n}\n'
Travis
function main()
{
var s = "\"";
}
line 4:15 token recognition error at: '";\n}\n'
using Toybox.Application as App;
using Toybox.WatchUi as Ui;
using Toybox.Graphics as Gfx;
using Toybox.System as Sys;
class TestView extends Ui.View
{
function initialize() {
}
function onShow() {
}
function onUpdate(dc) {
dc.setColor(Gfx.COLOR_WHITE, Gfx.COLOR_BLACK);
dc.clear();
var b = "#";
var c = "\\"; // escape the backslash with a backslash
var d = "%";
dc.drawText(2, 17, Gfx.FONT_SMALL, b, Gfx.TEXT_JUSTIFY_LEFT);
dc.drawText(2, 34, Gfx.FONT_SMALL, c, Gfx.TEXT_JUSTIFY_LEFT);
dc.drawText(2, 51, Gfx.FONT_SMALL, d, Gfx.TEXT_JUSTIFY_LEFT);
}
function onHide() {
}
}
class TestApp extends App.AppBase
{
function initialize() {
}
function onStart() {
}
function getInitialView() {
return [ new TestView() ];
}
function onStop() {
}
}
function testProcent() {
Sys.println(">>>%<<<");
Sys.println("111%111");
Sys.println("aaa%aaa");
}
>>><<<
111
aaa0x1.fffd7eff546p-1028aa
Sys.println(">>>%%<<<");
Sys.println("111%%111");
Sys.println("aaa%%aaa");
That said, this is an entirely different bug than the original one that started this thread. I don't know how the folks at Garmin want to handle these, but it would seem best that if we are going to make bug reports in these forums that each bug be filed as a separate thread (ideally with a test case). That way when they link to the thread from their bug tracking software there is no confusion which bug their issue refers to.