At first I thought it was random but I have now narrowed it down to the use of double quotes (for strings) within a source file. If a MC file has no strings in it then all is fine; double-clicking highlights the word and triple-clicking highlights the line. However, if a source file contains a string, then double-clicking on a word only works up to the point where the string occurs in the file. After that, double-clicking highlights everything from the previous occurance of a double quote character to the next occurance -- see the attached image. I did a quick search but I'm guessing this is something that is set in the Connect IQ plugin? I'm a SublimeText guy most of the time so I'm in a bit of uncharted territory here.
This occurs in valid, compiling and runnable MonkeyC source files so it's not an issue with me having invalid code.
For those that want to try and replicate, here is the code above that I have in the screenshot.
class HighlightSample {
var canDoubleClickThis = 1234;
var andThis;
var thisToo;
// no problems double clicking in this comment or this function
function canDoubleClickThisFunction() {
var xyz;
xyz = canDoubleClickThis + 42;
}
function troubleStartsInHere() {
// still no issues, with this comment or double clicking
// the println or the Test string...
println("Test...");
// double-clicking on the println below highlights what
// appears to be random but is actually string related weirdness
println("Trouble!");
}
}
Cheers,
Douglas