eric6/ThirdParty/Pygments/pygments/scanner.py

changeset 7547
21b0534faebc
parent 6942
2602857055c5
child 7701
25f42e208e08
equal deleted inserted replaced
7546:bf5f777260a6 7547:21b0534faebc
10 `RegexLexer`. 10 `RegexLexer`.
11 11
12 Have a look at the `DelphiLexer` to get an idea of how to use 12 Have a look at the `DelphiLexer` to get an idea of how to use
13 this scanner. 13 this scanner.
14 14
15 :copyright: Copyright 2006-2017 by the Pygments team, see AUTHORS. 15 :copyright: Copyright 2006-2019 by the Pygments team, see AUTHORS.
16 :license: BSD, see LICENSE for details. 16 :license: BSD, see LICENSE for details.
17 """ 17 """
18 import re 18 import re
19 19
20 20
23 Raise if end of text is reached and the user 23 Raise if end of text is reached and the user
24 tried to call a match function. 24 tried to call a match function.
25 """ 25 """
26 26
27 27
28 class Scanner(object): 28 class Scanner:
29 """ 29 """
30 Simple scanner 30 Simple scanner
31 31
32 All method patterns are regular expression strings (not 32 All method patterns are regular expression strings (not
33 compiled expressions!) 33 compiled expressions!)

eric ide

mercurial