Skip to content

Commit

Permalink
Merge pull request #1256 from Korpch/patch-1
Browse files Browse the repository at this point in the history
fix "char" is reserved word in bracket_match.js
  • Loading branch information
nightwing committed Feb 16, 2013
2 parents bc599f2 + 2632685 commit f826283
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/ace/edit_session/bracket_match.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,10 @@ var Range = require("../range").Range;

function BracketMatch() {

this.findMatchingBracket = function(position, char) {
this.findMatchingBracket = function(position, chr) {
if (position.column == 0) return null;

var charBeforeCursor = char || this.getLine(position.row).charAt(position.column-1);
var charBeforeCursor = chr || this.getLine(position.row).charAt(position.column-1);
if (charBeforeCursor == "") return null;

var match = charBeforeCursor.match(/([\(\[\{])|([\)\]\}])/);
Expand Down

0 comments on commit f826283

Please sign in to comment.