Files
ServerSync/lib/pygments/__pycache__/scanner.cpython-314.pyc

63 lines
4.6 KiB
Plaintext
Raw Normal View History

2026-02-12 02:28:23 +02:00
+
<00> <0C>i <00><00><<00>Rt^RIt!RR]4t!RR4tR#)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-2025 by the Pygments team, see AUTHORS.
:license: BSD, see LICENSE for details.
Nc<00><00>]tRt^tRtRtR#)<04> EndOfTextzN
Raise if end of text is reached and the user
tried to call a match function.
<EFBFBD>N)<06>__name__<5F>
__module__<EFBFBD> __qualname__<5F>__firstlineno__<5F>__doc__<5F>__static_attributes__r<00><00>7/tmp/pip-target-qd_sq_1j/lib/python/pygments/scanner.pyrrs<00><00>r rc<00>xa<00>]tRt^toRtR RltRt]!]]P4tRtRt Rt
Rt Rt R t VtR
#) <0C>Scannerz`
Simple scanner
All method patterns are regular expression strings (not
compiled expressions!)
c <0C><><00>Wn\V4Vn^Vn^VnW nRVnRVn/VnR#)zc
:param text: The text which should be scanned
:param flags: default regular expression flags
N) <09>data<74>len<65> data_length<74> start_pos<6F>pos<6F>flags<67>last<73>match<63> _re_cache)<03>self<6C>textrs&&&r <00>__init__<5F>Scanner.__init__#s=<00><00>
<19> <09><1E>t<EFBFBD>9<EFBFBD><04><18><1A><04><0E><14><04><08><1A>
<EFBFBD><18><04> <09><19><04>
<EFBFBD><1B><04>r c <0C>4<00>VPVP8<>#)z.`True` if the scanner reached the end of text.)rr<00>rs&r <00>eos<6F> Scanner.eos1s<00><00><13>x<EFBFBD>x<EFBFBD>4<EFBFBD>+<2B>+<2B>+<2B>+r c <0C>"<00>VP'd \4hWP9d.\P!WP
4VPV&VPV,P VPVP4#)zs
Apply `pattern` on the current position and return
the match object. (Doesn't touch pos). Use this for
lookahead.
) rrr<00>re<72>compilerrrr<00>r<00>patterns&&r <00>check<63> Scanner.check6s^<00><00> <10>8<EFBFBD>8<EFBFBD>8<EFBFBD><1B>+<2B> <1D> <12>.<2E>.<2E> (<28>&(<28>j<EFBFBD>j<EFBFBD><17>*<2A>*<2A>&E<>D<EFBFBD>N<EFBFBD>N<EFBFBD>7<EFBFBD> #<23><13>~<7E>~<7E>g<EFBFBD>&<26>,<2C>,<2C>T<EFBFBD>Y<EFBFBD>Y<EFBFBD><04><08><08>A<>Ar c <0C>(<00>VPV4RJ#)zTApply a pattern on the current position and check
if it patches. Doesn't touch pos.
N)r&r$s&&r <00>test<73> Scanner.testBs<00><00><14>z<EFBFBD>z<EFBFBD>'<27>"<22>$<24>.<2E>.r c <0C><><00>VP'd \4hWP9d.\P!WP
4VPV&VP VnVPV,P VPVP4pVfR#VP4Vn VP4Vn VP4VnR#)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)rrrr"r#rrrrr<00>startr<00>end<6E>group)rr%<00>ms&& r <00>scan<61> Scanner.scanHs<><00><00> <10>8<EFBFBD>8<EFBFBD>8<EFBFBD><1B>+<2B> <1D> <12>.<2E>.<2E> (<28>&(<28>j<EFBFBD>j<EFBFBD><17>*<2A>*<2A>&E<>D<EFBFBD>N<EFBFBD>N<EFBFBD>7<EFBFBD> #<23><18>J<EFBFBD>J<EFBFBD><04> <09> <10>N<EFBFBD>N<EFBFBD>7<EFBFBD> #<23> )<29> )<29>$<24>)<29>)<29>T<EFBFBD>X<EFBFBD>X<EFBFBD> ><3E><01> <0C>9<EFBFBD><18><1A><17><17><19><04><0E><14>5<EFBFBD>5<EFBFBD>7<EFBFBD><04><08><16>W<EFBFBD>W<EFBFBD>Y<EFBFBD><04>
<EFBFBD>r c <0C>(<00>VPR4R#)zScan exactly one char.<2E>.N)r0rs&r <00>get_char<61>Scanner.get_char_s <00><00> <0C> <09> <09>#<23>r c<08>j<00>RVPPVPVP3,#)z
<%s %d/%d>)<04> __class__rrrrs&r <00>__repr__<5F>Scanner.__repr__cs1<00><00><1B> <10>N<EFBFBD>N<EFBFBD> #<23> #<23> <10>H<EFBFBD>H<EFBFBD> <10> <1C> <1C>
<EFBFBD>
<EFBFBD>
r )rrrrrrrrN)<01>)rrrrr rr<00>propertyr&r)r0r4r8r
<00>__classdictcell__)<01> __classdict__s@r rrsE<00><><00><00><08> <1C>,<2C> <13>3<EFBFBD><03> <0B> <0B>
$<24>C<EFBFBD>
B<01>/<2F> <14>.<17>
<EFBFBD>
r r)r r"<00> RuntimeErrorrrrr r <00><module>r?s'<00><01><04> 
<EFBFBD><08> <0C><08>M
<EFBFBD>M
r