Lines Matching refs:match

114 	    match = __webpack_require__(5),
124 Match: match.Match,
234 matches = match.applyRegexList(code, brush.regexList, params);
439 return key.replace(/-(\w+)/g, function (match, word) {
457 var match,
468 while ((match = XRegExp.exec(str, regex, pos)) != null) {
469 var value = match.value.replace(/^['"]|['"]$/g, '') // strip quotes from end of strings
479 result[match.name] = result[camelize(match.name)] = value;
480 pos = match.index + match[0].length;
555 match: String.prototype.match,
909 XRegExp.forEach(value, /[^\s,]+/, function (match) {
910 options[match] = true;
949 match,
959 match = XRegExp.exec(pattern, t.regex, pos, 'sticky');
960 if (match) {
962 matchLength: match[0].length,
963 output: t.handler.call(context, match, scope, flags),
995 String.prototype.match = (on ? fixed : nativ).match;
1325 match,
1346 match = fixed.exec.call(r2, str);
1348 if (sticky && match && match.index !== pos) {
1349 match = null;
1353 regex.lastIndex = match ? r2.lastIndex : 0;
1356 return match;
1384 match;
1386 while (match = XRegExp.exec(str, regex, pos)) {
1393 callback(match, ++i, str, regex);
1395 pos = match.index + (match[0].length || 1);
1511 XRegExp.match = function (str, regex, scope) {
1527 result = nativ.match.call(toObject(str), r2);
1570 addMatch = function addMatch(match) {
1578 if (!(match.hasOwnProperty(item.backref) || +item.backref < match.length)) {
1582 matches.push(match[item.backref] || '');
1584 matches.push(match[0]);
1825 rewrite = function rewrite(match, paren, backref) {
1841 return match;
1882 match = nativ.exec.apply(this, arguments),
1887 if (match) {
1891 if (!correctExecNpcg && match.length > 1 && indexOf(match, '') > -1) {
1898 nativ.replace.call(String(str).slice(match.index), r2, function () {
1904 match[i] = undefined;
1913 for (i = 1; i < match.length; ++i) {
1916 match[name] = match[i];
1922 if (this.global && !match[0].length && this.lastIndex > match.index) {
1923 this.lastIndex = match.index;
1932 return match;
1958 fixed.match = function (regex) {
1965 result = nativ.match.apply(this, arguments);
2148 XRegExp.forEach(str, separator, function (match) {
2150 if (match.index + match[0].length > lastLastIndex) {
2151 output.push(str.slice(lastLastIndex, match.index));
2152 if (match.length > 1 && match.index < str.length) {
2153 Array.prototype.push.apply(output, match.slice(1));
2155 lastLength = match[0].length;
2156 lastLastIndex = match.index + lastLength;
2181 …qyz]|c(?![A-Za-z])|u(?![\dA-Fa-f]{4}|{[\dA-Fa-f]+})|x(?![\dA-Fa-f]{2}))/, function (match, scope) {
2183 if (match[1] === 'B' && scope === defaultScope) {
2184 return match[0];
2186 throw new SyntaxError('Invalid escape ' + match[0]);
2200 XRegExp.addToken(/\\u{([\dA-Fa-f]+)}/, function (match, scope, flags) {
2201 var code = dec(match[1]);
2203 throw new SyntaxError('Invalid Unicode code point ' + match[0]);
2212 return match[0];
2225 XRegExp.addToken(/\[(\^?)]/, function (match) {
2228 return match[1] ? '[\\s\\S]' : '\\b\\B';
2235 XRegExp.addToken(/\(\?#[^)]*\)/, function (match, scope, flags) {
2237 return isQuantifierNext(match.input, match.index + match[0].length, flags) ? '' : '(?:)';
2243 XRegExp.addToken(/\s+|#.*/, function (match, scope, flags) {
2245 return isQuantifierNext(match.input, match.index + match[0].length, flags) ? '' : '(?:)';
2262 XRegExp.addToken(/\\k<([\w$]+)>/, function (match) {
2264 var index = isNaN(match[1]) ? indexOf(this.captureNames, match[1]) + 1 : +match[1],
2265 endIndex = match.index + match[0].length;
2267 throw new SyntaxError('Backreference to undefined group ' + match[0]);
2270 …return '\\' + index + (endIndex === match.input.length || isNaN(match.input.charAt(endIndex)) ? ''…
2278 XRegExp.addToken(/\\(\d+)/, function (match, scope) {
2279 …if (!(scope === defaultScope && /^[1-9]/.test(match[1]) && +match[1] <= this.captureNames.length) …
2280 … throw new SyntaxError('Cannot use octal escape or backreference to undefined group ' + match[0]);
2282 return match[0];
2295 XRegExp.addToken(/\(\?P?<([\w$]+)>/, function (match) {
2298 if (!isNaN(match[1])) {
2299 throw new SyntaxError('Cannot use integer as capture name ' + match[0]);
2301 if (match[1] === 'length' || match[1] === '__proto__') {
2302 throw new SyntaxError('Cannot use reserved word as capture name ' + match[0]);
2304 if (indexOf(this.captureNames, match[1]) > -1) {
2305 throw new SyntaxError('Cannot use same name for multiple groups ' + match[0]);
2307 this.captureNames.push(match[1]);
2316 XRegExp.addToken(/\((?!\?)/, function (match, scope, flags) {
2465 function defaultAdd(match, regexInfo) {
2466 return match[0];
2470 match = null,
2475 while (match = _syntaxhighlighterRegex.XRegExp.exec(code, regexInfo.regex, pos)) {
2476 var resultMatch = process(match, regexInfo);
2478 …if (typeof resultMatch === 'string') resultMatch = [new _match.Match(resultMatch, match.index, reg…
2481 pos = match.index + match[0].length;
2654 match = null;
2660 if (match = gt.exec(m)) {
2661 m = match[1];
2662 suffix = match[2];
2782 function getBrushNameCss(match) {
2783 var result = match ? match.brushName || brushName : brushName;
2791 match,
2799 match = matches[i];
2801 if (match === null || match.length === 0) continue;
2803 matchBrushName = getBrushNameCss(match);
2805 …hCode(code.substr(pos, match.index - pos), matchBrushName + 'plain') + _this.wrapLinesWithCode(mat…
2807 pos = match.index + match.length + (match.offset || 0);
3271 if (scripts[i].type.match(/^(text\/)?syntaxhighlighter$/)) elements.push(scripts[i]);
3442 function process(match, info) {
3443 var code = match.code,
3446 offset = match.index + match.left.length,
3459 if (htmlScript.left != null && match.left != null) {
3460 matches = applyRegexList(match.left, [htmlScript.left]);
3461 offsetMatches(matches, match.index);
3466 if (htmlScript.right != null && match.right != null) {
3467 matches = applyRegexList(match.right, [htmlScript.right]);
3468 offsetMatches(matches, match.index + match[0].lastIndexOf(match.right));
3896 function hereDocProcess(match, regexInfo) {
3899 …if (match.here_doc != null) result.push(new Match(match.here_doc, match.index + match[0].indexOf(m…
3901 … if (match.full_tag != null) result.push(new Match(match.full_tag, match.index, 'preprocessor'));
3903 …if (match.end_tag != null) result.push(new Match(match.end_tag, match.index + match[0].lastIndexOf…
4051 function fixComments(match, regexInfo) {
4052 var css = match[0].indexOf("///") == 0 ? 'color1' : 'comments';
4053 return [new Match(match[0], match.index, css)];
5069 function multiLineCCommentsAdd(match, regexInfo) {
5070 var str = match[0],
5093 …result.push(new Match(str.substring(matchStart, pos + 2), matchStart + match.index, regexInfo.css)…
5105 function stringAdd(match, regexInfo) {
5106 var str = match[0],
5115 …result.push(new Match(str.substring(matchStart, pos + 2), matchStart + match.index, regexInfo.css)…
5135 …result.push(new Match(str.substring(matchStart, str.length), matchStart + match.index, regexInfo.c…
5309 function process(match, regexInfo) {
5310 var code = match[0],
5314 if (match.attributes != null) {
5320 result.push(new Match(attributes.name, match.index + attributes.index, 'color1'));
5321 …result.push(new Match(attributes.value, match.index + attributes.index + attributes[0].indexOf(att…
5326 …if (tag != null) result.push(new Match(tag.name, match.index + tag[0].indexOf(tag.name), 'keyword'…