Skip to content

Commit c160ecf

Browse files
committed
Move weak keyword lexer section to the top
I'm not sure why it ended up in the bottom. Normally we have these lexer/syntax sections towards the beginning of a section.
1 parent 5c86c73 commit c160ecf

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

src/keywords.md

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,14 @@ The following keywords are reserved beginning in the 2024 edition.
100100
These keywords have special meaning only in certain contexts. For example, it
101101
is possible to declare a variable or method with the name `union`.
102102

103+
> **<sup>Lexer</sup>**\
104+
> KW_MACRO_RULES : `macro_rules`\
105+
> KW_UNION : `union`\
106+
> KW_STATICLIFETIME : `'static`
107+
>
108+
> **<sup>Lexer 2015</sup>**\
109+
> KW_DYN : `dyn`
110+
103111
* `macro_rules` is used to create custom [macros].
104112
* `union` is used to declare a [union] and is only a keyword when used in a
105113
union declaration.
@@ -116,13 +124,6 @@ is possible to declare a variable or method with the name `union`.
116124

117125
Beginning in the 2018 edition, `dyn` has been promoted to a strict keyword.
118126

119-
> **<sup>Lexer</sup>**\
120-
> KW_MACRO_RULES : `macro_rules`\
121-
> KW_UNION : `union`\
122-
> KW_STATICLIFETIME : `'static`
123-
>
124-
> **<sup>Lexer 2015</sup>**\
125-
> KW_DYN : `dyn`
126127
* `safe` is used for functions and statics, which has meaning in [external blocks].
127128

128129
[items]: items.md

0 commit comments

Comments
 (0)