From 6505bd347df557713061d4e84cf9548d104622d9 Mon Sep 17 00:00:00 2001 From: Andrey Makarov Date: Wed, 5 Oct 2022 21:03:10 +0300 Subject: 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 --- doc/intern.md | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'doc/intern.md') 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 -- cgit 1.4.1-2-gfad0