ó Z-Qc@sBdZddlZdefd„ƒYZdefd„ƒYZdS(s pygments.scanner ~~~~~~~~~~~~~~~~ This library implements a regex based scanner. Some languages like Pascal are easy to parse but have some keywords that depend on the context. Because of this it's impossible to lex that just by using a regular expression lexer like the `RegexLexer`. Have a look at the `DelphiLexer` to get an idea of how to use this scanner. :copyright: Copyright 2006-2013 by the Pygments team, see AUTHORS. :license: BSD, see LICENSE for details. iÿÿÿÿNt EndOfTextcBseZdZRS(sZ Raise if end of text is reached and the user tried to call a match function. (t__name__t __module__t__doc__(((s:/usr/local/lib/python2.7/site-packages/pygments/scanner.pyRstScannercBsbeZdZdd„Zd„ZeeejƒZd„Zd„Zd„Zd„Z d„Z RS( sp Simple scanner All method patterns are regular expression strings (not compiled expressions!) icCsR||_t|ƒ|_d|_d|_||_d|_d|_i|_ dS(s{ :param text: The text which should be scanned :param flags: default regular expression flags iN( tdatatlent data_lengtht start_postpostflagstNonetlasttmatcht _re_cache(tselfttextR ((s:/usr/local/lib/python2.7/site-packages/pygments/scanner.pyt__init__$s      cCs|j|jkS(s.`True` if the scanner reached the end of text.(R R(R((s:/usr/local/lib/python2.7/site-packages/pygments/scanner.pyteos2scCs`|jrtƒ‚n||jkrCtj||jƒ|j|(t __class__RR R(R((s:/usr/local/lib/python2.7/site-packages/pygments/scanner.pyt__repr__cs ( RRRRRtpropertyRRRR R"(((s:/usr/local/lib/python2.7/site-packages/pygments/scanner.pyRs     (RRt RuntimeErrorRtobjectR(((s:/usr/local/lib/python2.7/site-packages/pygments/scanner.pyts