From ebad6f96b9e3fe8def9a59e8df788101559e1f43 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jure=20=C5=A0orn?= Date: Thu, 15 Aug 2024 13:56:48 +0200 Subject: [PATCH] Fixed class highlights --- index.html | 10 +++++----- parse.js | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/index.html b/index.html index 95bcae5..c0df2f8 100644 --- a/index.html +++ b/index.html @@ -54,7 +54,7 @@
- +
@@ -833,10 +833,10 @@ csv.writer(<file>).writerow([<obj>]) raise Exception(<obj>) -

Expressions that call the repr() method:

print/str/repr([<obj>])
-print/str/repr({<obj>: <obj>})
+

Expressions that call the repr() method:

print/str/repr([<obj>])
+print/str/repr({<obj>: <obj>})
 f'{<obj>!r}'
-Z = dataclasses.make_dataclass('Z', ['a']); print/str/repr(Z(<obj>))
+Z = dataclasses.make_dataclass('Z', ['a']); print/str/repr(Z(<obj>))
 >>> <obj>
 
@@ -2932,7 +2932,7 @@ $ deactivate # Deactivates the activ diff --git a/parse.js b/parse.js index b47b309..d46dca6 100755 --- a/parse.js +++ b/parse.js @@ -827,7 +827,7 @@ function fixHighlights() { $(`code:contains( = ±0b)`).html(BIN_HEX); $(`code:contains(@lru_cache(maxsize=None))`).html(LRU_CACHE); $(`code:contains(@debug(print_result=True))`).html(PARAMETRIZED_DECORATOR); - $(`code:contains(print/str/repr([obj]))`).html(REPR_USE_CASES); + $(`code:contains(print/str/repr([]))`).html(REPR_USE_CASES); $(`code:contains((self, a=None):)`).html(CONSTRUCTOR_OVERLOADING); $(`code:contains(make_dataclass(\'\')`).html(DATACLASS); $(`code:contains(shutil.copy)`).html(SHUTIL_COPY);