eric6/ThirdParty/Pygments/pygments/lexers/python.py

changeset 7983
54c5cfbb1e29
parent 7701
25f42e208e08
equal deleted inserted replaced
7982:48d210e41c65 7983:54c5cfbb1e29
3 pygments.lexers.python 3 pygments.lexers.python
4 ~~~~~~~~~~~~~~~~~~~~~~ 4 ~~~~~~~~~~~~~~~~~~~~~~
5 5
6 Lexers for Python and related languages. 6 Lexers for Python and related languages.
7 7
8 :copyright: Copyright 2006-2020 by the Pygments team, see AUTHORS. 8 :copyright: Copyright 2006-2021 by the Pygments team, see AUTHORS.
9 :license: BSD, see LICENSE for details. 9 :license: BSD, see LICENSE for details.
10 """ 10 """
11 11
12 import re 12 import re
13 13
724 bygroups(Text, using(PythonLexer), Text)), 724 bygroups(Text, using(PythonLexer), Text)),
725 (r'^([ \t]*)(\.\.\.)(\n)', 725 (r'^([ \t]*)(\.\.\.)(\n)',
726 bygroups(Text, Comment, Text)), # for doctests... 726 bygroups(Text, Comment, Text)), # for doctests...
727 (r'^([^:]+)(: )(.+)(\n)', 727 (r'^([^:]+)(: )(.+)(\n)',
728 bygroups(Generic.Error, Text, Name, Text), '#pop'), 728 bygroups(Generic.Error, Text, Name, Text), '#pop'),
729 (r'^([a-zA-Z_]\w*)(:?\n)', 729 (r'^([a-zA-Z_][\w.]*)(:?\n)',
730 bygroups(Generic.Error, Text), '#pop') 730 bygroups(Generic.Error, Text), '#pop')
731 ], 731 ],
732 } 732 }
733 733
734 734

eric ide

mercurial