Skip to content

Commit

Permalink
docs: Suppress highlighting errors for snippets that cause errors in …
Browse files Browse the repository at this point in the history
…pygments-lexer-solidity
  • Loading branch information
cameel committed May 20, 2021
1 parent 894f286 commit 22cc0ba
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
3 changes: 2 additions & 1 deletion docs/assembly.rst
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,8 @@ Both expressions can also be assigned to.

Local Solidity variables are available for assignments, for example:

.. code::
.. code-block:: solidity
:force:
// SPDX-License-Identifier: GPL-3.0
pragma solidity >=0.7.0 <0.9.0;
Expand Down
6 changes: 4 additions & 2 deletions docs/examples/micropayment.rst
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,8 @@ The functions ``prefixed`` and ``recoverSigner`` do this in the ``claimPayment``
The full contract
-----------------

::
.. code-block:: solidity
:force:
// SPDX-License-Identifier: GPL-3.0
pragma solidity >=0.7.0 <0.9.0;
Expand Down Expand Up @@ -335,7 +336,8 @@ so it is important that Bob closes the channel before the expiration is reached.
The full contract
-----------------

::
.. code-block:: solidity
:force:
// SPDX-License-Identifier: GPL-3.0
pragma solidity >=0.7.0 <0.9.0;
Expand Down

0 comments on commit 22cc0ba

Please sign in to comment.