diff --git a/lib/ace/mode/xquery.js b/lib/ace/mode/xquery.js index c66dd043..265ec6a5 100644 --- a/lib/ace/mode/xquery.js +++ b/lib/ace/mode/xquery.js @@ -135,7 +135,6 @@ oop.inherits(Mode, TextMode); }); worker.on("highlight", function(tokens) { - //console.log(that.$deltas); //if(that.$deltas.length > 0) return; that.$tokenizer.tokens = tokens.data.tokens; that.$tokenizer.lines = tokens.data.lines; diff --git a/lib/ace/mode/xquery/XQueryLexer.js b/lib/ace/mode/xquery/XQueryLexer.js index 5efb377d..ee874a5f 100644 --- a/lib/ace/mode/xquery/XQueryLexer.js +++ b/lib/ace/mode/xquery/XQueryLexer.js @@ -242,17 +242,10 @@ exports.XQueryLexer = function() { } catch(e) { if(e instanceof tokenizer.ParseException) { - //var message = tokenizer.getErrorMessage(e); - //console.log(stack[stack.length - 1]); - //console.log(line); - //console.log(line.substring(e.getBegin(), e.getEnd())); - //console.log(message); var index = 0; for(var i in tokens) { index += tokens[i].value.length; } - //console.log("Index: " + index); - //console.log("Begin: " + e.getBegin()); tokens.push({ type: "text", value: line.substring(index) }); return { tokens: tokens, @@ -285,13 +278,6 @@ exports.XQueryLexer = function() { } col += token.value.length; } - console.log("======"); - console.log(sharedStart([line, this.lines[row]])); - console.log(this.lines[row]); - console.log(line); - console.log(line.length - this.lines[row].length); - console.log("======"); - } return {