rust-analyzer/crates/ra_syntax
bors[bot] 5d35f284f5 Merge #1138
1138: Add L_DOLLAR and R_DOLLAR r=matklad a=edwin0cheng

As discussion in issue https://github.com/rust-analyzer/rust-analyzer/issues/1132 and PR #1125 , this PR add 2 `Syntax::Kind` : `L_DOLLAR` and `R_DOLLAR` for representing `Delimiter::None` in mbe and proc_marco. By design, It should not affect the final syntax tree, and will be discard in `TreeSink`.

My original idea is handling these 2 tokens case by case, but i found that they will appear in every place in the parser (imagine `tt` matcher). So this PR only handle it in `Parser::do_bump` and `Parser::start`, although It will not fix the `expr` matcher executing order problem in original idea.


Co-authored-by: Edwin Cheng <edwin0cheng@gmail.com>
2019-04-14 14:16:42 +00:00
..
fuzz Add fuzz test for reparsing 2019-03-22 08:04:48 +09:00
src Merge #1138 2019-04-14 14:16:42 +00:00
tests fix typo 2019-04-11 17:15:20 +03:00
Cargo.toml migrate to untyped rowan 2019-04-09 10:26:51 +03:00