about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorCarol Nichols <carol.nichols@gmail.com>2015-04-28 22:02:53 -0400
committerCarol Nichols <carol.nichols@gmail.com>2015-04-28 22:02:53 -0400
commit0ddee94cfeec045d23be3ce98d06b2f3f774a134 (patch)
tree7432b396cc5fc41f3bcdfa287e5406559a001667 /src
parent3e521bfd96597d89dc2f0e8026caf8beee8959d9 (diff)
downloadrust-0ddee94cfeec045d23be3ce98d06b2f3f774a134.tar.gz
rust-0ddee94cfeec045d23be3ce98d06b2f3f774a134.zip
Move explanation that references lexical grammar to the grammar
Reword so that the references to things above/below are up to date and a
bit more specific.
Diffstat (limited to 'src')
-rw-r--r--src/doc/grammar.md6
-rw-r--r--src/doc/reference.md5
2 files changed, 6 insertions, 5 deletions
diff --git a/src/doc/grammar.md b/src/doc/grammar.md
index ad4c0c1711b..80a4b63cc5f 100644
--- a/src/doc/grammar.md
+++ b/src/doc/grammar.md
@@ -179,6 +179,12 @@ lit_suffix : ident;
 literal : [ string_lit | char_lit | byte_string_lit | byte_lit | num_lit | bool_lit ] lit_suffix ?;
 ```
 
+The optional `lit_suffix` production is only used for certain numeric literals,
+but is reserved for future extension. That is, the above gives the lexical
+grammar, but a Rust parser will reject everything but the 12 special cases
+mentioned in [Number literals](reference.html#number-literals) in the
+reference.
+
 #### Character and string literals
 
 ```antlr
diff --git a/src/doc/reference.md b/src/doc/reference.md
index a71f8cf4250..474e09b2c41 100644
--- a/src/doc/reference.md
+++ b/src/doc/reference.md
@@ -130,11 +130,6 @@ of tokens, that immediately and directly denotes the value it evaluates to,
 rather than referring to it by name or some other evaluation rule. A literal is
 a form of constant expression, so is evaluated (primarily) at compile time.
 
-The optional suffix is only used for certain numeric literals, but is
-reserved for future extension, that is, the above gives the lexical
-grammar, but a Rust parser will reject everything but the 12 special
-cases mentioned in [Number literals](#number-literals) below.
-
 #### Examples
 
 ##### Characters and strings