remove use of future reserved words
This commit is contained in:
parent
72b54cf733
commit
30e3841857
2 changed files with 7 additions and 7 deletions
|
|
@ -362,14 +362,14 @@ var Document = function(text, mode) {
|
||||||
|
|
||||||
while (true) {
|
while (true) {
|
||||||
while(column >= 0) {
|
while(column >= 0) {
|
||||||
var char = line.charAt(column);
|
var chr = line.charAt(column);
|
||||||
if (char == openBracket) {
|
if (chr == openBracket) {
|
||||||
depth -= 1;
|
depth -= 1;
|
||||||
if (depth == 0) {
|
if (depth == 0) {
|
||||||
return {row: row, column: column};
|
return {row: row, column: column};
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else if (char == bracket) {
|
else if (chr == bracket) {
|
||||||
depth +=1;
|
depth +=1;
|
||||||
}
|
}
|
||||||
column -= 1;
|
column -= 1;
|
||||||
|
|
@ -395,14 +395,14 @@ var Document = function(text, mode) {
|
||||||
|
|
||||||
while (true) {
|
while (true) {
|
||||||
while(column < line.length) {
|
while(column < line.length) {
|
||||||
var char = line.charAt(column);
|
var chr = line.charAt(column);
|
||||||
if (char == closingBracket) {
|
if (chr == closingBracket) {
|
||||||
depth -= 1;
|
depth -= 1;
|
||||||
if (depth == 0) {
|
if (depth == 0) {
|
||||||
return {row: row, column: column};
|
return {row: row, column: column};
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else if (char == bracket) {
|
else if (chr == bracket) {
|
||||||
depth +=1;
|
depth +=1;
|
||||||
}
|
}
|
||||||
column += 1;
|
column += 1;
|
||||||
|
|
|
||||||
|
|
@ -8,7 +8,7 @@
|
||||||
require.def("ace/mode/Text",
|
require.def("ace/mode/Text",
|
||||||
[
|
[
|
||||||
"ace/Tokenizer",
|
"ace/Tokenizer",
|
||||||
"ace/mode/TextHighlightRules",
|
"ace/mode/TextHighlightRules"
|
||||||
], function(Tokenizer, TextHighlightRules) {
|
], function(Tokenizer, TextHighlightRules) {
|
||||||
|
|
||||||
var Text = function() {
|
var Text = function() {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue