diff options
author | Aleksey Kladov <[email protected]> | 2018-08-28 19:11:17 +0100 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2018-08-28 19:11:17 +0100 |
commit | 2257c08cb159a30492bf2aec172539b1dd504700 (patch) | |
tree | 3346d52224b9444e975314e1af32f4490baf91c2 /crates/libsyntax2/src/grammar.ron | |
parent | b00a4d43ecd4af49a2870718a9d5b8d49084a285 (diff) |
Add ret type
Diffstat (limited to 'crates/libsyntax2/src/grammar.ron')
-rw-r--r-- | crates/libsyntax2/src/grammar.ron | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/crates/libsyntax2/src/grammar.ron b/crates/libsyntax2/src/grammar.ron index f8fa7b694..f1907d1ce 100644 --- a/crates/libsyntax2/src/grammar.ron +++ b/crates/libsyntax2/src/grammar.ron | |||
@@ -119,6 +119,7 @@ Grammar( | |||
119 | "STRUCT_DEF", | 119 | "STRUCT_DEF", |
120 | "ENUM_DEF", | 120 | "ENUM_DEF", |
121 | "FN_DEF", | 121 | "FN_DEF", |
122 | "RET_TYPE", | ||
122 | "EXTERN_CRATE_ITEM", | 123 | "EXTERN_CRATE_ITEM", |
123 | "MODULE", | 124 | "MODULE", |
124 | "USE_ITEM", | 125 | "USE_ITEM", |
@@ -252,8 +253,10 @@ Grammar( | |||
252 | options: [ | 253 | options: [ |
253 | ["param_list", "ParamList"], | 254 | ["param_list", "ParamList"], |
254 | ["body", "Block"], | 255 | ["body", "Block"], |
256 | ["ret_type", "RetType"] | ||
255 | ], | 257 | ], |
256 | ), | 258 | ), |
259 | "RetType": (), | ||
257 | "StructDef": ( | 260 | "StructDef": ( |
258 | traits: [ | 261 | traits: [ |
259 | "NameOwner", | 262 | "NameOwner", |