Files
openide/python/testData/quickdoc/FunctionWrapping.html
Daniel Below 87d76c25d1 CPP-34359: Remove empty DEFAULT_PARAMETER key
Default theme's DEFAULT_PARAMETER should fallback to IDENTIFIER, just like in Darcula.
This fixes issues where an external highlighter returns a DEFAULT_PARAMETER highlighting, but a wrong highlighting is applied instead. This happens because looking up the key in the scheme finds the empty DEFAULT_PARAMETER value with null colors, thus we fallback to the other highlighter's colors, which may be incorrect.

GitOrigin-RevId: ea4fb9fccf4f164c677d1eb5ce09638c0c402b49
2023-08-23 11:32:04 +00:00

4 lines
1.7 KiB
HTML

<html><body><div class="bottom"><icon src="AllIcons.Nodes.Package"/>&nbsp;<code><a href="psi_element://#module#FunctionWrapping">FunctionWrapping</a></code></div><div class="definition"><pre><span style="color:#000080;font-weight:bold;">def </span><span style="color:#000000;">maybe_add_numbers</span><span style="">(</span><span style="color:#000000;">a</span><span style="">: </span><span style="color:#000000;"><span style="color:#000080;"><a href="psi_element://#typename#int">int</a></span><span style=""> | </span><span style="color:#000080;font-weight:bold;">None</span></span><span style="">,</span>
<span style="color:#000000;">b</span><span style="">: </span><span style="color:#000000;"><span style="color:#000080;"><a href="psi_element://#typename#int">int</a></span><span style=""> | </span><span style="color:#000080;font-weight:bold;">None</span></span><span style="">,</span>
<span style="color:#000000;">c</span><span style="">: </span><span style="color:#000000;"><span style="color:#000080;"><a href="psi_element://#typename#int">int</a></span><span style=""> | </span><span style="color:#000080;font-weight:bold;">None</span></span><span style="">,</span>
<span style="color:#000000;">d</span><span style="">: </span><span style="color:#000000;"><span style="color:#000080;"><a href="psi_element://#typename#int">int</a></span><span style=""> | </span><span style="color:#000080;font-weight:bold;">None</span></span><span style="">)</span> -&gt; <span style="color:#000000;"><span style="color:#000080;"><a href="psi_element://#typename#int">int</a></span><span style=""> | </span><span style="color:#000080;font-weight:bold;">None</span></span></pre></div></body></html>