remove use of future reserved words

This commit is contained in:
Fabian Jakobs 2010-11-04 16:19:26 +01:00
commit 30e3841857
2 changed files with 7 additions and 7 deletions

View file

@ -362,14 +362,14 @@ var Document = function(text, mode) {
while (true) {
while(column >= 0) {
var char = line.charAt(column);
if (char == openBracket) {
var chr = line.charAt(column);
if (chr == openBracket) {
depth -= 1;
if (depth == 0) {
return {row: row, column: column};
}
}
else if (char == bracket) {
else if (chr == bracket) {
depth +=1;
}
column -= 1;
@ -395,14 +395,14 @@ var Document = function(text, mode) {
while (true) {
while(column < line.length) {
var char = line.charAt(column);
if (char == closingBracket) {
var chr = line.charAt(column);
if (chr == closingBracket) {
depth -= 1;
if (depth == 0) {
return {row: row, column: column};
}
}
else if (char == bracket) {
else if (chr == bracket) {
depth +=1;
}
column += 1;

View file

@ -8,7 +8,7 @@
require.def("ace/mode/Text",
[
"ace/Tokenizer",
"ace/mode/TextHighlightRules",
"ace/mode/TextHighlightRules"
], function(Tokenizer, TextHighlightRules) {
var Text = function() {