summary refs log tree commit diff stats
path: root/doc
diff options
context:
space:
mode:
authorAndreas Rumpf <rumpf_a@web.de>2021-03-24 22:29:42 +0100
committerGitHub <noreply@github.com>2021-03-24 22:29:42 +0100
commit355985ac89dd13d5b317744b30842155d9321565 (patch)
tree921c35b4f7310b41fcd78ac9a44e8983b7c6727b /doc
parent5f5a92379fab59db0e7e3da5a9cec2a11be45ed8 (diff)
downloadNim-355985ac89dd13d5b317744b30842155d9321565.tar.gz
custom integer literals bugfixes (#17499)
* custom integer literals bugfixes

* make nimsuggest compile again
Diffstat (limited to 'doc')
-rw-r--r--doc/manual.rst6
1 files changed, 5 insertions, 1 deletions
diff --git a/doc/manual.rst b/doc/manual.rst
index a882eb945..51c434c7b 100644
--- a/doc/manual.rst
+++ b/doc/manual.rst
@@ -490,7 +490,7 @@ this. Another reason is that Nim can thus support `array[char, int]` or
 type is used for Unicode characters, it can represent any Unicode character.
 `Rune` is declared in the `unicode module <unicode.html>`_.
 
-A character literal that  does not end in ``'`` interpreted as ``'`` if there
+A character literal that does not end in ``'`` is interpreted as ``'`` if there
 is a preceeding backtick token. There must be no whitespace between the preceeding
 backtick token and the character literal. This special rule ensures that a declaration
 like ``proc `'customLiteral`(s: string)`` is valid. See also
@@ -538,6 +538,9 @@ Numeric literals have the form::
 
   CUSTOM_NUMERIC_LIT = (FLOAT_LIT | DEC_LIT | OCT_LIT | BIN_LIT) '\'' CUSTOM_NUMERIC_SUFFIX
 
+  # CUSTOM_NUMERIC_SUFFIX is any Nim identifier that is not
+  # a pre-defined type suffix.
+
 
 As can be seen in the productions, numeric literals can contain underscores
 for readability. Integer and floating-point literals may be given in decimal (no
@@ -653,6 +656,7 @@ the case that additional parameters are passed to the callee:
   var x = 5'u4(123)
 
 Custom numeric literals are covered by the grammar rule named `CUSTOM_NUMERIC_LIT`.
+A custom numeric literal is a single token.
 
 
 Operators