rem: var ending = RegExp.$2; indentation = indentString(RegExp.$1) + ending; 
add: var ending = RegExp.$1; indentation = indentString(firstPosVirtual) + ending; 
context: function tryCppComment(line){    var currentLine = line - 1;    if (currentLine < 0)        return -1;    var firstPos = document.firstCharPos(currentLine);    if (firstPos == -1)        return -1;    var currentString = document.line(currentLine);    var char1 = currentString.charAt(firstPos);    var char2 = currentString.charAt(firstPos + 1);    var indentation = -1;    // allowed are: //, ///, //! ///<, //!< and ////...    if (char1 == '/' && char2 == '/') {        var char3 = currentString.charAt(firstPos + 2);        var char4 = currentString.charAt(firstPos + 3);        if (char3 == '/' && char4 == '/') {            // match ////... and replace by only two: //            currentString.search(/^(\s*)(\/\/)/);        } else if (char3 == '/' || char3 == '!') {            // match ///, //!, ///< and //!            currentString.search(/^(\s*)(\/\/[/!][<]?\s*)/);        } else {            // only //, nothing else            currentString.search(/^(\s*)(\/\/\s*)/);        }        var ending = RegExp.$2;        indentation = indentString(RegExp.$1) + ending;// if we want to force a space after //, remove the comments//        if (lastNonSpace(indentation) == indentation.length - 1)//            indentation += ' ';    }    if (indentation != -1) debug("tryCppComment: success");    return indentation;}
meta: 1078	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/1078/7cad0c927379ef77bee60890e6b74abb2b5075dd/script-indent-c-test.js/buggy/kate/scripts/script-indent-c-test.js