aboutsummaryrefslogtreecommitdiffstats
path: root/doc/references/CodingStyle.rst
diff options
context:
space:
mode:
authorgritbub <38131016+gritbub@users.noreply.github.com>2018-06-04 20:03:46 -0500
committergritbub <38131016+gritbub@users.noreply.github.com>2018-06-04 20:03:46 -0500
commit2f3242a4e3487d75b31101d65c2df114eefaf7e4 (patch)
treedada55bf72b92f1a655ae46c91c1a5a0bdd3b0fe /doc/references/CodingStyle.rst
parentf97dd315cb642534a40b516cd4e54c07b64e9621 (diff)
downloadghdl-2f3242a4e3487d75b31101d65c2df114eefaf7e4.tar.gz
ghdl-2f3242a4e3487d75b31101d65c2df114eefaf7e4.tar.bz2
ghdl-2f3242a4e3487d75b31101d65c2df114eefaf7e4.zip
Standardize indentation to 2 spaces
Change indentation within documentation code blocks to 2 space indents instead of 3.
Diffstat (limited to 'doc/references/CodingStyle.rst')
-rw-r--r--doc/references/CodingStyle.rst10
1 files changed, 5 insertions, 5 deletions
diff --git a/doc/references/CodingStyle.rst b/doc/references/CodingStyle.rst
index 2fb09c6ef..b9da53804 100644
--- a/doc/references/CodingStyle.rst
+++ b/doc/references/CodingStyle.rst
@@ -10,7 +10,7 @@ Use assertions.
We try to follow the 'GNU Coding Standards' when possible: comments before
declarations, two spaces at end of sentences, finish sentences with a dot.
-But: 3 spaces for indentation.
+But: 2 spaces for indentation in code blocks.
No trailing spaces, no TAB (HT).
@@ -82,7 +82,7 @@ declaration). Don't repeat the comment before the subprogram body.
procedure Translate_Assign (Target : Mnode; Expr : Iir; Target_Type : Iir)
is
- Val : O_Enode;
+ Val : O_Enode;
begin
vs.
@@ -130,9 +130,9 @@ declaration). Don't repeat the comment before the subprogram body.
.. code-block:: Ada
is
- N_Info : constant Iir := Get_Sub_Aggregate_Info (Info);
- Assoc : Iir;
- Sub : Iir;
+ N_Info : constant Iir := Get_Sub_Aggregate_Info (Info);
+ Assoc : Iir;
+ Sub : Iir;
begin
If the initialization expression has a side effect (such as allocation), do