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(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;
|
||||
|
|
|
|||
|
|
@ -8,7 +8,7 @@
|
|||
require.def("ace/mode/Text",
|
||||
[
|
||||
"ace/Tokenizer",
|
||||
"ace/mode/TextHighlightRules",
|
||||
"ace/mode/TextHighlightRules"
|
||||
], function(Tokenizer, TextHighlightRules) {
|
||||
|
||||
var Text = function() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue