Lines Matching refs:captures

186     var captures;
187 if (captures = regexp.exec(this.input)) {
188 var len = captures[0].length;
189 var val = captures[1];
198 var captures;
199 if (captures = regexp.exec(this.input)) {
203 if (whitespace = /^([ ]+)([^ ]*)/.exec(captures[0])) {
207 var newInput = this.input.substr(captures[0].length);
210 tok = this.tok(type, captures[1]);
211 this.incrementColumn(captures[0].length - whitespaceLength);
216 tok = this.tok(type, captures[1]);
217 this.incrementColumn(captures[0].length - whitespaceLength);
270 var captures, re;
274 captures = this.indentRe.exec(this.input);
279 captures = re.exec(this.input);
282 if (captures && !captures[1].length) {
284 captures = re.exec(this.input);
288 if (captures && captures[1].length) this.indentRe = re;
291 return captures;
316 var captures;
317 if (captures = /^\n[ \t]*\n/.exec(this.input)) {
318 this.consume(captures[0].length - 1);
329 var captures;
330 if (captures = /^\/\/(-)?([^\n]*)/.exec(this.input)) {
331 this.consume(captures[0].length);
332 var tok = this.tok('comment', captures[2]);
333 tok.buffer = '-' != captures[1];
336 this.incrementColumn(captures[0].length);
370 var captures;
372 if (captures = /^(\w(?:[-:\w]*\w)?)/.exec(this.input)) {
373 var tok, name = captures[1], len = captures[0].length;
628 var captures;
629 if (captures = /^(?:block +)?prepend +([^\n]+)/.exec(this.input)) {
630 var name = captures[1].trim();
638 var len = captures[0].length - comment.length;
643 this.consume(captures[0].length - comment.length);
644 this.incrementColumn(captures[0].length - comment.length - len);
654 var captures;
655 if (captures = /^(?:block +)?append +([^\n]+)/.exec(this.input)) {
656 var name = captures[1].trim();
664 var len = captures[0].length - comment.length;
669 this.consume(captures[0].length - comment.length);
670 this.incrementColumn(captures[0].length - comment.length - len);
680 var captures;
681 if (captures = /^block +([^\n]+)/.exec(this.input)) {
682 var name = captures[1].trim();
690 var len = captures[0].length - comment.length;
695 this.consume(captures[0].length - comment.length);
696 this.incrementColumn(captures[0].length - comment.length - len);
830 var tok, captures, increment;
831 if (captures = /^\+(\s*)(([-\w]+)|(#\{))/.exec(this.input)) {
833 if (captures[3]) {
835 increment = captures[0].length;
837 tok = this.tok('call', captures[3]);
840 var match = this.bracketExpression(2 + captures[1].length);
851 if (captures = /^ *\(/.exec(this.input)) {
852 var range = this.bracketExpression(captures[0].length - 1);
877 var captures;
878 if (captures = /^mixin +([-\w]+)(?: *\((.*)\))? */.exec(this.input)) {
879 this.consume(captures[0].length);
880 var tok = this.tok('mixin', captures[1]);
881 tok.args = captures[2] || null;
882 this.incrementColumn(captures[0].length);
893 var captures;
894 if (captures = /^(if|unless|else if|else)\b([^\n]*)/.exec(this.input)) {
895 this.consume(captures[0].length);
896 var type = captures[1].replace(/ /g, '-');
897 var js = captures[2] && captures[2].trim();
900 this.incrementColumn(captures[0].length - js.length);
932 var captures, tok;
933 if (captures = /^while +([^\n]+)/.exec(this.input)) {
934 this.consume(captures[0].length);
935 this.assertExpression(captures[1]);
936 tok = this.tok('while', captures[1]);
937 this.incrementColumn(captures[0].length);
951 var captures;
952 …if (captures = /^(?:each|for) +([a-zA-Z_$][\w$]*)(?: *, *([a-zA-Z_$][\w$]*))? * in *([^\n]+)/.exec…
953 this.consume(captures[0].length);
954 var tok = this.tok('each', captures[1]);
955 tok.key = captures[2] || null;
956 this.incrementColumn(captures[0].length - captures[3].length);
957 this.assertExpression(captures[3])
958 tok.code = captures[3];
959 this.incrementColumn(captures[3].length);
966 …if (captures = /^- *(?:each|for) +([a-zA-Z_$][\w$]*)(?: *, *([a-zA-Z_$][\w$]*))? +in +([^\n]+)/.ex…
979 var captures;
980 if (captures = /^(!?=|-)[ \t]*([^\n]+)/.exec(this.input)) {
981 var flags = captures[1];
982 var code = captures[2];
990 this.incrementColumn(captures[0].length - code.length + err.index);
1003 var consumed = captures[0].length - shortened;
1022 this.incrementColumn(captures[0].length - captures[2].length);
1317 var captures = this.scanIndentation();
1320 if (captures) {
1321 var indents = captures[1].length;
1373 var captures = this.scanIndentation();
1375 indents = indents || captures && captures[1].length;