From 5a88011a1d26c3c1da8cad18e0ed0eb4e1baaf59 Mon Sep 17 00:00:00 2001 From: Alex Date: Thu, 20 Jan 2022 14:03:07 +0300 Subject: [PATCH] Extend code_python.json (dunder methods and libraries) (#2322) by ASMaksimov2007 * Extend code_python.json * Add Python magic methods to code_python.json Added magic dunder methods to Python language file. * Fix missed comma in code_python.json * Fix missed comma after __del__ * Remove unnesessary dunder methods --- static/languages/code_python.json | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/static/languages/code_python.json b/static/languages/code_python.json index 22107f53e..44a9fbcc3 100644 --- a/static/languages/code_python.json +++ b/static/languages/code_python.json @@ -3,6 +3,10 @@ "leftToRight": true, "noLazyMode": true, "words": [ + "__str__", + "__repr__", + "__del__", + "__init__", "abs", "all", "and", @@ -60,6 +64,7 @@ "from", "fromkeys", "frozenset", + "functools", "get", "getattr", "global", @@ -92,6 +97,7 @@ "isupper", "items", "iter", + "itertools", "join", "keys", "lambda", @@ -103,12 +109,14 @@ "lstrip", "maketrans", "map", + "math", "max", "memoryview", "min", "next", "None", "not", + "nonlocal", "object", "oct", "open", @@ -136,6 +144,7 @@ "rpartition", "rsplit", "rstrip", + "self", "set", "setattr", "setdefault",