Lines Matching refs:pattern
227 var pattern = '(?:' +
234 pattern += '|\\b' + preceder;
236 pattern += '|' + preceder.replace(/([^=<>:&])/g, '\\$1');
239 pattern += '|^)\\s*$'; // matches at end, and matches empty string
240 return new RegExp(pattern);
420 // The below pattern matches one of the following
442 // since the pattern has the 'g' modifier and defines no capturing groups,
512 /** Given triples of [style, pattern, context] returns a lexing function,
521 * [style : string, pattern : RegExp, context : RegExp, shortcut : string].
525 * Pattern must only match prefixes, and if it matches a prefix and context
533 * character, gurantee that this pattern and only this pattern matches.