2bi :SrSSKr"SS\5r"SS5rg)a 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-2023 by the Pygments team, see AUTHORS. :license: BSD, see LICENSE for details. Nc\rSrSrSrSrg) EndOfTextzN Raise if end of text is reached and the user tried to call a match function. N)__name__ __module__ __qualname____firstlineno____doc____static_attributes__rڎ/builddir/build/BUILDROOT/alt-python313-pip-23.3.1-3.el8.x86_64/opt/alt/python313/lib/python3.13/site-packages/pip/_vendor/pygments/scanner.pyrrsr rcl\rSrSrSrS SjrSr\"\\R5rSrSr Sr Sr S r S r g ) Scannerz` Simple scanner All method patterns are regular expression strings (not compiled expressions!) cXl[U5UlSUlSUlX lSUlSUl0Ulg)zc :param text: The text which should be scanned :param flags: default regular expression flags rN) datalen data_length start_posposflagslastmatch _re_cache)selftextrs r__init__Scanner.__init__#s=  t9   r c4URUR:$)z.`True` if the scanner reached the end of text.)rrrs reos Scanner.eos1sxx4++++r cUR(a [5eXR;a-[R"XR 5URU'URUR URUR5$)zs Apply `pattern` on the current position and return the match object. (Doesn't touch pos). Use this for lookahead. ) r"rrrecompilerrrrrpatterns rcheck Scanner.check6s\ 88+  .. (&(jj**&EDNN7 #~~g&,,TYYAAr c(URU5SL$)zTApply a pattern on the current position and check if it patches. Doesn't touch pos. N)r)r's rtest Scanner.testBszz'"$..r cUR(a [5eXR;a-[R"XR 5URU'UR UlURUR URUR5nUcgUR5Ul UR5Ul UR5Ulg)a] Scan the text for the given pattern and update pos/match and related fields. The return value is a boolean that indicates if the pattern matched. The matched value is stored on the instance as ``match``, the last value is stored as ``last``. ``start_pos`` is the position of the pointer before the pattern was matched, ``pos`` is the end position. FT)r"rrr%r&rrrrrstartrendgroup)rr(ms rscan Scanner.scanHs 88+  .. (&(jj**&EDNN7 #JJ NN7 # ) )$))TXX > 9557WWY r c&URS5 g)zScan exactly one char..N)r3r!s rget_charScanner.get_char_s  #r cbSURRURUR4-$)Nz <%s %d/%d>) __class__rrrr!s r__repr__Scanner.__repr__cs1 NN # # HH      r )rrrrrrrrN)r)rrr r r rr"propertyr)r,r3r7r;r rr rrrs= , 3 $C B/ . r r)r r% RuntimeErrorrrrr rr?s'   M M r