diff options
author | Andrey Makarov <ph.makarov@gmail.com> | 2022-10-05 21:03:10 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-10-05 14:03:10 -0400 |
commit | 6505bd347df557713061d4e84cf9548d104622d9 (patch) | |
tree | 8f48f1d066b9e807b2c5550edb5f743e7cc7fa01 /doc/intern.md | |
parent | 594e93a66bd19297d23d3328a3f35aa6ac3789af (diff) | |
download | Nim-6505bd347df557713061d4e84cf9548d104622d9.tar.gz |
Markdown indented code blocks (#20473)
* Implement Markdown indented code blocks Additional indentation of 4 spaces makes a block an "indented code block" (monospaced text without syntax highlighting). Also `::` RST syntax for code blocks is disabled. So instead of ```rst see:: Some code ``` the code block should be written as ```markdown see: Some code ``` * Migrate RST literal blocks :: to Markdown's ones
Diffstat (limited to 'doc/intern.md')
-rw-r--r-- | doc/intern.md | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/doc/intern.md b/doc/intern.md index fe2e59f51..ebdbca52d 100644 --- a/doc/intern.md +++ b/doc/intern.md @@ -593,14 +593,14 @@ Integer literals In Nim, there is a redundant way to specify the type of an integer literal. First, it should be unsurprising that every node has a node kind. The node of an integer literal can be any of the -following values:: +following values: nkIntLit, nkInt8Lit, nkInt16Lit, nkInt32Lit, nkInt64Lit, nkUIntLit, nkUInt8Lit, nkUInt16Lit, nkUInt32Lit, nkUInt64Lit On top of that, there is also the `typ` field for the type. The kind of the `typ` field can be one of the following ones, and it -should be matching the literal kind:: +should be matching the literal kind: tyInt, tyInt8, tyInt16, tyInt32, tyInt64, tyUInt, tyUInt8, tyUInt16, tyUInt32, tyUInt64 @@ -656,7 +656,6 @@ pointing back to the integer literal node in the ast containing the integer value. These are the properties that hold true for integer literal types. -:: n.kind == nkIntLit n.typ.kind == tyInt n.typ.n == n |