- start = Lang.punc(start)) == 'undefined' ? start : Lang.punc(start);
-
- if (!stop) stop = Lang.matching(start);
-
+ if (stop=="") {
+ var newstop = Lang.matching(start);
+ stop = newstop;
+ }
+ if (stop == null) {
+ throw new TokenStreamError.ArgumentError("balance called with invalid start/stop : %s",start);
+ }
+ debug("START=%s, STOP=%s \n", start,stop);