rust-analyzer/crates/ra_syntax/test_data/parser/ok
Geoffry Song 989cebc99c Fix parsing of "postfix" range expressions.
Right now they are handled in `postfix_dot_expr`, but that doesn't allow it to
correctly handle precedence. Integrate it more tightly with the Pratt parser
instead.

Also includes a drive-by fix for parsing `match .. {}`.

Fixes #2242.
2019-11-15 00:18:28 -08:00
..
0000_empty.rs move syntax tests to unit tests 2019-07-24 12:49:19 +03:00
0000_empty.txt move syntax tests to unit tests 2019-07-24 12:49:19 +03:00
0001_struct_item.rs move syntax tests to unit tests 2019-07-24 12:49:19 +03:00
0001_struct_item.txt rename struct -> record, pos -> tuple 2019-08-23 16:59:50 +03:00
0002_struct_item_field.rs move syntax tests to unit tests 2019-07-24 12:49:19 +03:00
0002_struct_item_field.txt rename struct -> record, pos -> tuple 2019-08-23 16:59:50 +03:00
0004_file_shebang.rs move syntax tests to unit tests 2019-07-24 12:49:19 +03:00
0004_file_shebang.txt move syntax tests to unit tests 2019-07-24 12:49:19 +03:00
0005_fn_item.rs move syntax tests to unit tests 2019-07-24 12:49:19 +03:00
0005_fn_item.txt update test data 2019-09-02 20:15:51 +03:00
0006_inner_attributes.rs move syntax tests to unit tests 2019-07-24 12:49:19 +03:00
0006_inner_attributes.txt Parse correct AttrInput 2019-09-30 16:11:40 +08:00
0007_extern_crate.rs move syntax tests to unit tests 2019-07-24 12:49:19 +03:00
0007_extern_crate.txt move syntax tests to unit tests 2019-07-24 12:49:19 +03:00
0008_mod_item.rs move syntax tests to unit tests 2019-07-24 12:49:19 +03:00
0008_mod_item.txt Parse correct AttrInput 2019-09-30 16:11:40 +08:00
0009_use_item.rs move syntax tests to unit tests 2019-07-24 12:49:19 +03:00
0009_use_item.txt move syntax tests to unit tests 2019-07-24 12:49:19 +03:00
0010_use_path_segments.rs move syntax tests to unit tests 2019-07-24 12:49:19 +03:00
0010_use_path_segments.txt move syntax tests to unit tests 2019-07-24 12:49:19 +03:00
0011_outer_attribute.rs Parse correct AttrInput 2019-09-30 16:11:40 +08:00
0011_outer_attribute.txt Parse correct AttrInput 2019-09-30 16:11:40 +08:00
0012_visibility.rs move syntax tests to unit tests 2019-07-24 12:49:19 +03:00
0012_visibility.txt update test data 2019-09-02 20:15:51 +03:00
0013_use_path_self_super.rs move syntax tests to unit tests 2019-07-24 12:49:19 +03:00
0013_use_path_self_super.txt move syntax tests to unit tests 2019-07-24 12:49:19 +03:00
0014_use_tree.rs move syntax tests to unit tests 2019-07-24 12:49:19 +03:00
0014_use_tree.txt move syntax tests to unit tests 2019-07-24 12:49:19 +03:00
0015_use_tree.rs move syntax tests to unit tests 2019-07-24 12:49:19 +03:00
0015_use_tree.txt move syntax tests to unit tests 2019-07-24 12:49:19 +03:00
0016_struct_flavors.rs move syntax tests to unit tests 2019-07-24 12:49:19 +03:00
0016_struct_flavors.txt rename struct -> record, pos -> tuple 2019-08-23 16:59:50 +03:00
0017_attr_trailing_comma.rs move syntax tests to unit tests 2019-07-24 12:49:19 +03:00
0017_attr_trailing_comma.txt Parse correct AttrInput 2019-09-30 16:11:40 +08:00
0018_struct_type_params.rs move syntax tests to unit tests 2019-07-24 12:49:19 +03:00
0018_struct_type_params.txt rename struct -> record, pos -> tuple 2019-08-23 16:59:50 +03:00
0019_enums.rs move syntax tests to unit tests 2019-07-24 12:49:19 +03:00
0019_enums.txt rename struct -> record, pos -> tuple 2019-08-23 16:59:50 +03:00
0020_type_param_bounds.rs move syntax tests to unit tests 2019-07-24 12:49:19 +03:00
0020_type_param_bounds.txt move syntax tests to unit tests 2019-07-24 12:49:19 +03:00
0021_extern_fn.rs move syntax tests to unit tests 2019-07-24 12:49:19 +03:00
0021_extern_fn.txt update test data 2019-09-02 20:15:51 +03:00
0022_empty_extern_block.rs move syntax tests to unit tests 2019-07-24 12:49:19 +03:00
0022_empty_extern_block.txt move syntax tests to unit tests 2019-07-24 12:49:19 +03:00
0023_static_items.rs move syntax tests to unit tests 2019-07-24 12:49:19 +03:00
0023_static_items.txt move syntax tests to unit tests 2019-07-24 12:49:19 +03:00
0024_const_item.rs Add tests for underscores in const and static items 2019-09-14 16:31:09 -07:00
0024_const_item.txt Add tests for underscores in const and static items 2019-09-14 16:31:09 -07:00
0025_extern_fn_in_block.rs move syntax tests to unit tests 2019-07-24 12:49:19 +03:00
0025_extern_fn_in_block.txt update test data 2019-09-02 20:15:51 +03:00
0026_const_fn_in_block.rs move syntax tests to unit tests 2019-07-24 12:49:19 +03:00
0026_const_fn_in_block.txt update test data 2019-09-02 20:15:51 +03:00
0027_unsafe_fn_in_block.rs move syntax tests to unit tests 2019-07-24 12:49:19 +03:00
0027_unsafe_fn_in_block.txt update test data 2019-09-02 20:15:51 +03:00
0028_operator_binding_power.rs move syntax tests to unit tests 2019-07-24 12:49:19 +03:00
0028_operator_binding_power.txt update test data 2019-09-02 20:15:51 +03:00
0029_range_forms.rs move syntax tests to unit tests 2019-07-24 12:49:19 +03:00
0029_range_forms.txt update test data 2019-09-02 20:15:51 +03:00
0030_string_suffixes.rs move syntax tests to unit tests 2019-07-24 12:49:19 +03:00
0030_string_suffixes.txt update test data 2019-09-02 20:15:51 +03:00
0030_traits.rs move syntax tests to unit tests 2019-07-24 12:49:19 +03:00
0030_traits.txt move syntax tests to unit tests 2019-07-24 12:49:19 +03:00
0031_extern.rs move syntax tests to unit tests 2019-07-24 12:49:19 +03:00
0031_extern.txt move syntax tests to unit tests 2019-07-24 12:49:19 +03:00
0032_where_for.rs move syntax tests to unit tests 2019-07-24 12:49:19 +03:00
0032_where_for.txt update test data 2019-09-02 20:15:51 +03:00
0033_label_break.rs move syntax tests to unit tests 2019-07-24 12:49:19 +03:00
0033_label_break.txt update test data 2019-09-02 20:15:51 +03:00
0034_crate_path_in_call.rs move syntax tests to unit tests 2019-07-24 12:49:19 +03:00
0034_crate_path_in_call.txt update test data 2019-09-02 20:15:51 +03:00
0035_weird_exprs.rs move syntax tests to unit tests 2019-07-24 12:49:19 +03:00
0035_weird_exprs.txt Parse correct AttrInput 2019-09-30 16:11:40 +08:00
0036_fully_qualified.rs move syntax tests to unit tests 2019-07-24 12:49:19 +03:00
0036_fully_qualified.txt update test data 2019-09-02 20:15:51 +03:00
0037_mod.rs move syntax tests to unit tests 2019-07-24 12:49:19 +03:00
0037_mod.txt move syntax tests to unit tests 2019-07-24 12:49:19 +03:00
0038_where_pred_type.rs move syntax tests to unit tests 2019-07-24 12:49:19 +03:00
0038_where_pred_type.txt update test data 2019-09-02 20:15:51 +03:00
0039_raw_fn_item.rs move syntax tests to unit tests 2019-07-24 12:49:19 +03:00
0039_raw_fn_item.txt update test data 2019-09-02 20:15:51 +03:00
0040_raw_struct_item_field.rs move syntax tests to unit tests 2019-07-24 12:49:19 +03:00
0040_raw_struct_item_field.txt rename struct -> record, pos -> tuple 2019-08-23 16:59:50 +03:00
0041_raw_keywords.rs move syntax tests to unit tests 2019-07-24 12:49:19 +03:00
0041_raw_keywords.txt update test data 2019-09-02 20:15:51 +03:00
0042_ufcs_call_list.rs move syntax tests to unit tests 2019-07-24 12:49:19 +03:00
0042_ufcs_call_list.txt update test data 2019-09-02 20:15:51 +03:00
0043_complex_assignment.rs move syntax tests to unit tests 2019-07-24 12:49:19 +03:00
0043_complex_assignment.txt update test data 2019-09-02 20:15:51 +03:00
0044_let_attrs.rs move syntax tests to unit tests 2019-07-24 12:49:19 +03:00
0044_let_attrs.txt Parse correct AttrInput 2019-09-30 16:11:40 +08:00
0045_block_inner_attrs.rs move syntax tests to unit tests 2019-07-24 12:49:19 +03:00
0045_block_inner_attrs.txt Parse correct AttrInput 2019-09-30 16:11:40 +08:00
0046_extern_inner_attributes.rs move syntax tests to unit tests 2019-07-24 12:49:19 +03:00
0046_extern_inner_attributes.txt Parse correct AttrInput 2019-09-30 16:11:40 +08:00
0047_minus_in_inner_pattern.rs move syntax tests to unit tests 2019-07-24 12:49:19 +03:00
0047_minus_in_inner_pattern.txt update test data 2019-09-02 20:15:51 +03:00
0048_compound_assignment.rs move syntax tests to unit tests 2019-07-24 12:49:19 +03:00
0048_compound_assignment.txt update test data 2019-09-02 20:15:51 +03:00
0049_async_block.rs move syntax tests to unit tests 2019-07-24 12:49:19 +03:00
0049_async_block.txt update test data 2019-09-02 20:15:51 +03:00
0050_async_block_as_argument.rs move syntax tests to unit tests 2019-07-24 12:49:19 +03:00
0050_async_block_as_argument.txt update test data 2019-09-02 20:15:51 +03:00
0051_parameter_attrs.rs Fix parser tests according to review 2019-08-08 09:12:07 +07:00
0051_parameter_attrs.txt Parse correct AttrInput 2019-09-30 16:11:40 +08:00
0052_for_range_block.rs fix test position 2019-08-14 21:20:04 +08:00
0052_for_range_block.txt update test data 2019-09-02 20:15:51 +03:00
0053_outer_attribute_on_macro_rules.rs Fix outer doc-comments of macro_rules 2019-09-09 11:13:14 +08:00
0053_outer_attribute_on_macro_rules.txt Parse correct AttrInput 2019-09-30 16:11:40 +08:00
0054_qual_path_in_type_arg.rs WIP: switch to fully decomposed tokens internally 2019-09-10 15:46:39 +03:00
0054_qual_path_in_type_arg.txt WIP: switch to fully decomposed tokens internally 2019-09-10 15:46:39 +03:00
0055_dot_dot_dot.rs add a jointness parser tests 2019-09-10 15:57:51 +03:00
0055_dot_dot_dot.txt add a jointness parser tests 2019-09-10 15:57:51 +03:00
0056_neq_in_type.rs don't confuse macro with != 2019-09-20 16:23:24 +03:00
0056_neq_in_type.txt don't confuse macro with != 2019-09-20 16:23:24 +03:00
0057_loop_in_call.rs Support loop as argument 2019-09-20 16:35:29 -04:00
0057_loop_in_call.txt Support loop as argument 2019-09-20 16:35:29 -04:00
0058_unary_expr_precedence.rs Move tests around 2019-10-05 16:33:05 -07:00
0058_unary_expr_precedence.txt Move tests around 2019-10-05 16:33:05 -07:00
0059_loops_in_parens.rs fix parsing of for loops inside expressions 2019-10-28 15:41:34 +03:00
0059_loops_in_parens.txt fix parsing of for loops inside expressions 2019-10-28 15:41:34 +03:00
0060_as_range.rs Fix parsing of "postfix" range expressions. 2019-11-15 00:18:28 -08:00
0060_as_range.txt Fix parsing of "postfix" range expressions. 2019-11-15 00:18:28 -08:00
0061_match_full_range.rs Fix parsing of "postfix" range expressions. 2019-11-15 00:18:28 -08:00
0061_match_full_range.txt Fix parsing of "postfix" range expressions. 2019-11-15 00:18:28 -08:00