rem: if (currentString.search(/^\s*(if|for|do|while|switch|[}]?\s*else|((private|public|protected|case|default|signals|Q_SIGNALS).*:))/) == -1) 
add: if (currentString.search(/^\s*(if\b|for|do\b|while|switch|[}]?\s*else|((private|public|protected|case|default|signals|Q_SIGNALS).*:))/) == -1) 
context: function tryCKeywords(line){    var currentLine = line - 1;    if (currentLine < 0)        return -1;    var lastPos = -1;    var lineDelimiter = gLineDelimiter;    // search non-empty line    while (currentLine >= 0 && lineDelimiter > 0) {        lastPos = document.lastCharPos(currentLine);        if (lastPos != -1) {            break;        }        --currentLine;        --lineDelimiter;    }    if (lastPos == -1)        return -1;    // found non-empty line    var currentString = document.line(currentLine);    if (currentString.search(/^\s*(if|for|do|while|switch|[}]?\s*else|((private|public|protected|case|default|signals|Q_SIGNALS).*:))/) == -1)        return -1;//    var firstWord = RegExp.$1;//    debug("Found first word: " + firstWord);    var lastChar = currentString.charAt(lastPos);    var indentation = -1;    // try to ignore lines like: if (a) b; or if (a) { b; }    if (lastChar != ';' && lastChar != '}') {        // take its indentation and add one indentation level        var firstPosVirtual = document.firstCharPosVirtual(currentLine);        indentation = incIndent(g50spaces.substring(0, firstPosVirtual));    }    if (indentation != -1) debug("tryCKeywords: 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