context: function getExpressionOffset(command, offset){    // XXXjoe This is kind of a poor-man's JavaScript parser - trying    // to find the start of the expression that the cursor is inside.    // Not 100% fool proof, but hey...        var bracketCount = 0;    var start = command.length-1;    for (; start >= 0; --start)    {        var c = command[start];        if ((c == "," || c == ";" || c == " ") && !bracketCount)            break;        if (reOpenBracket.test(c))        {            if (bracketCount)                --bracketCount;            else                break;        }        else if (reCloseBracket.test(c))            ++bracketCount;    }        return start + 1;}
meta: 7450	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/7450/856922939002b0d3462c04ce77a6e2ad91741388/commandLine.js/buggy/extension/content/firebug/commandLine.js