Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Fix whitespaces | Edwin Cheng | 2020-04-25 | 1 | -1/+1 |
| | |||||
* | Special case for empty comments | Edwin Cheng | 2020-04-25 | 1 | -0/+13 |
| | |||||
* | Convert bool to ident instead of literal in mbe | Edwin Cheng | 2020-04-18 | 5 | -14/+47 |
| | |||||
* | Add mbe lifetime split test | Edwin Cheng | 2020-04-18 | 1 | -0/+27 |
| | |||||
* | Split LIFETIME to two tokens in mbe | Edwin Cheng | 2020-04-18 | 3 | -14/+89 |
| | |||||
* | Remove format from syntax_bridge hot path | Edwin Cheng | 2020-04-13 | 1 | -5/+6 |
| | |||||
* | Fix accidently quadratic behavior when processing includes | Aleksey Kladov | 2020-04-10 | 1 | -17/+19 |
| | | | | closes #3927 | ||||
* | Rename some tokens | Aleksey Kladov | 2020-04-10 | 1 | -10/+10 |
| | |||||
* | Improve tt::Subtree debug print | Edwin Cheng | 2020-04-09 | 1 | -0/+79 |
| | |||||
* | Add L_DOLLAR for TYPE_RECOVERY_SET | Edwin Cheng | 2020-04-08 | 1 | -0/+17 |
| | |||||
* | Remove deps on tt_mbe | Edwin Cheng | 2020-03-26 | 1 | -0/+7 |
| | |||||
* | Add basic custom derive lowering | Edwin Cheng | 2020-03-25 | 1 | -1/+1 |
| | |||||
* | Add open delim when delim not match | Edwin Cheng | 2020-03-20 | 2 | -5/+28 |
| | |||||
* | Fix text range bug and reorder | Edwin Cheng | 2020-03-20 | 1 | -14/+19 |
| | |||||
* | Add TokenConvertor trait | Edwin Cheng | 2020-03-20 | 2 | -239/+155 |
| | |||||
* | Add test for delim bug | Edwin Cheng | 2020-03-20 | 2 | -12/+147 |
| | |||||
* | Small fixes | Florian Diebold | 2020-03-16 | 1 | -4/+2 |
| | |||||
* | Some more refactoring | Florian Diebold | 2020-03-16 | 2 | -58/+76 |
| | |||||
* | Some cleanup | Florian Diebold | 2020-03-16 | 1 | -5/+7 |
| | |||||
* | Turn ExpandResult into struct | Florian Diebold | 2020-03-16 | 5 | -35/+59 |
| | |||||
* | Fix remaining test failure | Florian Diebold | 2020-03-16 | 2 | -9/+11 |
| | |||||
* | Fix performance problem | Florian Diebold | 2020-03-16 | 2 | -32/+37 |
| | |||||
* | Add test, remove printlns | Florian Diebold | 2020-03-16 | 2 | -2/+0 |
| | |||||
* | Get tests working | Florian Diebold | 2020-03-16 | 2 | -3/+4 |
| | |||||
* | wip | Florian Diebold | 2020-03-16 | 2 | -84/+137 |
| | |||||
* | Attempt to implement ranking of rules when none matches perfectly (wip) | Florian Diebold | 2020-03-16 | 2 | -10/+13 |
| | |||||
* | Make MBE expansion more resilient (WIP) | Florian Diebold | 2020-03-16 | 5 | -45/+71 |
| | |||||
* | Merge #3513 | bors[bot] | 2020-03-09 | 1 | -1/+3 |
|\ | | | | | | | | | | | | | | | | | | | | | 3513: Completion in macros r=matklad a=flodiebold I experimented a bit with completion in macros. It's kind of working, but there are a lot of rough edges. - I'm trying to expand the macro call with the inserted fake token. This requires some hacky additions on the HIR level to be able to do "hypothetical" expansions. There should probably be a nicer API for this, if we want to do it this way. I'm not sure whether it's worth it, because we still can't do a lot if the original macro call didn't expand in nearly the same way. E.g. if we have something like `println!("", x<|>)` the expansions will look the same and everything is fine; but in that case we could maybe have achieved the same result in a simpler way. If we have something like `m!(<|>)` where `m!()` doesn't even expand or expands to something very different, we don't really know what to do anyway. - Relatedly, there are a lot of cases where this doesn't work because either the original call or the hypothetical call doesn't expand. E.g. if we have `m!(x.<|>)` the original token tree doesn't parse as an expression; if we have `m!(match x { <|> })` the hypothetical token tree doesn't parse. It would be nice if we could have better error recovery in these cases. Co-authored-by: Florian Diebold <[email protected]> | ||||
| * | Add more tests | Florian Diebold | 2020-03-07 | 1 | -1/+3 |
| | | |||||
* | | Add parse_to_token_tree | Edwin Cheng | 2020-03-08 | 3 | -33/+203 |
|/ | |||||
* | fix regression from #3451 | Edwin Cheng | 2020-03-05 | 2 | -1/+57 |
| | |||||
* | Fixed whitespace bug | Edwin Cheng | 2020-03-04 | 2 | -3/+35 |
| | |||||
* | Fix #3436 | Edwin Cheng | 2020-03-04 | 3 | -1/+72 |
| | |||||
* | Fix a bug for single dollar sign macro | Edwin Cheng | 2020-03-03 | 2 | -1/+6 |
| | |||||
* | Cleanup editing API | Aleksey Kladov | 2020-02-29 | 1 | -1/+1 |
| | |||||
* | ra_mbe: Remove explicit type annotation | Veetaha | 2020-02-22 | 1 | -1/+1 |
| | |||||
* | ra_mbe: added test for malformed token in macro invokation | Veetaha | 2020-02-22 | 1 | -3/+21 |
| | | | | | There was a panic where lexer returned None on malformed tokens. But now we just ignore tokenization errors in mbe. | ||||
* | ra_mbe: convert_literal now works with malformed tokens | Veetaha | 2020-02-22 | 1 | -2/+3 |
| | |||||
* | Cleanup | Shotaro Yamada | 2020-02-19 | 1 | -1/+1 |
| | |||||
* | Update versions | Kirill Bulatov | 2020-02-18 | 1 | -3/+3 |
| | |||||
* | More manual clippy fixes | Kirill Bulatov | 2020-02-18 | 1 | -10/+7 |
| | |||||
* | Run cargo +nightly fix --clippy -Z unstable-options | Kirill Bulatov | 2020-02-18 | 3 | -8/+8 |
| | |||||
* | ra_syntax: refactored the lexer design as per @matklad and @kiljacken PR review | Veetaha | 2020-02-03 | 1 | -3/+2 |
| | |||||
* | Reimplemented lexer with vectors instead of iterators | Veetaha | 2020-02-03 | 1 | -3/+5 |
| | |||||
* | Add details about test_repeat_bad_var current state | Vincent Rouillé | 2019-12-30 | 1 | -0/+2 |
| | |||||
* | Details about macro NestingState hit and at_end fields | Vincent Rouillé | 2019-12-30 | 1 | -7/+10 |
| | |||||
* | fix #2520: change expand_repeat loop stop condition | Vincent Rouillé | 2019-12-28 | 2 | -36/+77 |
| | |||||
* | Clippy lints | kjeremy | 2019-12-20 | 1 | -1/+3 |
| | |||||
* | Refactor macro tests | Aleksey Kladov | 2019-12-19 | 2 | -397/+282 |
| | |||||
* | Fix parsing of interpolated expressions | Aleksey Kladov | 2019-12-19 | 1 | -0/+18 |
| |