2

Resolved

Incorrect outlining with } in literals

description

The following piece of code doesn't outline correctly.
        if (objectData) {
            var format = '{0} - Val: {1:0.';
            for (var i = 0; i < objectData.precision; ++i) {
                format += '0';
            }
            format += '}';
            var newName = String.format(format, objectData.objectName, objectData.actualValue);
            placemark.setName(newName);
        }
because of += '}'; it collapses to the following:

if (objectData)
var newName = ...
placemark.setName(....);
}

comments