Browse Source

Fixed class highlights

pull/144/merge
Jure Šorn 6 months ago
parent
commit
ebad6f96b9
2 changed files with 6 additions and 6 deletions
  1. 10
      index.html
  2. 2
      parse.js

10
index.html

@ -54,7 +54,7 @@
<body>
<header>
<aside>August 13, 2024</aside>
<aside>August 15, 2024</aside>
<a href="https://gto76.github.io" rel="author">Jure Šorn</a>
</header>
@ -833,10 +833,10 @@ csv.writer(&lt;file&gt;).writerow([&lt;obj&gt;])
<span class="hljs-keyword">raise</span> Exception(&lt;obj&gt;)
</code></pre></div>
<div><h4 id="expressionsthatcallthereprmethod">Expressions that call the repr() method:</h4><pre><code class="python language-python hljs"><span class="hljs-keyword">print</span>/str/repr([&lt;obj&gt;])
<span class="hljs-keyword">print</span>/str/repr({&lt;obj&gt;: &lt;obj&gt;})
<div><h4 id="expressionsthatcallthereprmethod">Expressions that call the repr() method:</h4><pre><code class="python language-python hljs">print/str/repr([&lt;obj&gt;])
print/str/repr({&lt;obj&gt;: &lt;obj&gt;})
<span class="hljs-string">f'<span class="hljs-subst">{&lt;obj&gt;!r}</span>'</span>
Z = dataclasses.make_dataclass(<span class="hljs-string">'Z'</span>, [<span class="hljs-string">'a'</span>]); <span class="hljs-keyword">print</span>/str/repr(Z(&lt;obj&gt;))
Z = dataclasses.make_dataclass(<span class="hljs-string">'Z'</span>, [<span class="hljs-string">'a'</span>]); print/str/repr(Z(&lt;obj&gt;))
<span class="hljs-meta">&gt;&gt;&gt; </span>&lt;obj&gt;
</code></pre></div>
@ -2932,7 +2932,7 @@ $ deactivate <span class="hljs-comment"># Deactivates the activ
<footer>
<aside>August 13, 2024</aside>
<aside>August 15, 2024</aside>
<a href="https://gto76.github.io" rel="author">Jure Šorn</a>
</footer>

2
parse.js

@ -827,7 +827,7 @@ function fixHighlights() {
$(`code:contains(<int> = ±0b<bin>)`).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([<obj>]))`).html(REPR_USE_CASES);
$(`code:contains((self, a=None):)`).html(CONSTRUCTOR_OVERLOADING);
$(`code:contains(make_dataclass(\'<class_name>\')`).html(DATACLASS);
$(`code:contains(shutil.copy)`).html(SHUTIL_COPY);

Loading…
Cancel
Save