aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_mbe/src/lib.rs
Commit message (Collapse)AuthorAgeFilesLines
* Change to add 1 if non zero shiftEdwin Cheng2019-11-041-1/+1
|
* Refactor and renameEdwin Cheng2019-11-041-21/+20
|
* Change Option<u32> to u32 for shift valueEdwin Cheng2019-11-041-8/+5
|
* Change to better namingEdwin Cheng2019-11-041-3/+3
|
* Add TokenId Shif in macro_rulesEdwin Cheng2019-11-041-2/+47
|
* Added test for check doc strings in crates.Alexander Andreev2019-09-301-4/+4
| | | | #1856
* minor cleanupAleksey Kladov2019-09-221-1/+8
|
* use usual token tree for macro expansionAleksey Kladov2019-09-171-96/+61
|
* cleanup expansion to item listAleksey Kladov2019-09-101-2/+2
|
* allow rustfmt to reorder importsAleksey Kladov2019-07-041-8/+2
| | | | | | This wasn't a right decision in the first place, the feature flag was broken in the last rustfmt release, and syntax highlighting of imports is more important anyway
* By pass unbind $var while mbe expandingEdwin Cheng2019-05-031-1/+1
|
* Refactor out tests module and remove empty subtreeEdwin Cheng2019-05-031-1137/+1
|
* Fixed old incorrect testEdwin Cheng2019-05-021-1/+1
|
* Compare text insteadEdwin Cheng2019-05-021-2/+2
|
* Add empty bindings and some refactoringEdwin Cheng2019-05-021-1/+19
|
* Refactor parser handle mult-char punct internallyEdwin Cheng2019-04-281-13/+17
|
* Fix more bugsEdwin Cheng2019-04-251-2/+110
|
* Add handling `token` seperator in mbeEdwin Cheng2019-04-251-189/+27
|
* Fix incorrect repeat sep eatingEdwin Cheng2019-04-251-1/+257
|
* Remove unused print outEdwin Cheng2019-04-221-67/+63
|
* Add a test for #1178 caseEdwin Cheng2019-04-221-3/+102
|
* Add testsEdwin Cheng2019-04-211-2/+87
|
* Fix bugsEdwin Cheng2019-04-201-23/+87
|
* Disable test_tt_xxEdwin Cheng2019-04-191-23/+23
|
* Add back missing assertEdwin Cheng2019-04-191-2/+3
|
* Add vis matcherEdwin Cheng2019-04-191-0/+12
|
* Add literal matcherEdwin Cheng2019-04-191-0/+12
|
* Add lifetime matcherEdwin Cheng2019-04-191-1/+12
|
* add tt matcherEdwin Cheng2019-04-191-0/+24
|
* add block matcherEdwin Cheng2019-04-191-0/+19
|
* Add block matcherEdwin Cheng2019-04-191-0/+12
|
* Merge #1148bors[bot]2019-04-191-10/+76
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 1148: Add token_tree_to_xxx functions r=matklad a=edwin0cheng <del>As discus in PR #1147 , this PR added a `mbe::MacroKind` . Currently only 2 kind of macro are supported, `SourceFile` and `Block`.</del> Added following functions for `tt::TokenTree` and `ast::Node` conversion: * token_tree_to_expr * token_tree_to_pat * token_tree_to_ty * token_tree_to_macro_stmts * token_tree_to_macro_items And added two new syntax kind: * MACRO_ITEMS * MACRO_STMTS Co-authored-by: Edwin Cheng <[email protected]>
| * Return Result for token_tree_to_xx functionsEdwin Cheng2019-04-181-4/+7
| |
| * Add expr, pat, ty and macro_stmtsEdwin Cheng2019-04-181-0/+57
| |
| * Add MacroItems and MacroStmts in grammer.ronEdwin Cheng2019-04-181-8/+14
| |
* | Fix missing last token in mbe $repeat parsingEdwin Cheng2019-04-181-0/+24
|/
* Add `item` matcher in mbeEdwin Cheng2019-04-181-0/+44
|
* Add mbe stmt matcherEdwin Cheng2019-04-171-0/+15
|
* Fix bug and add expr , pat , ty matcherEdwin Cheng2019-04-141-0/+97
|
* Remove skip Delimiter::None and handle DollarsEdwin Cheng2019-04-121-2/+55
|
* Use SubtreeWalker instread of flatten TtTokenEdwin Cheng2019-04-081-3/+31
|
* Combine all tokensource to one and refactoringEdwin Cheng2019-04-071-0/+1
|
* Refactoring subtree_sourceEdwin Cheng2019-04-071-1/+3
|
* Add path test and empty eat_path handlingEdwin Cheng2019-04-061-0/+22
|
* Add proper test for literals and fixed typo bugEdwin Cheng2019-04-051-4/+7
|
* Add classify_literal and undo expose next_tokenEdwin Cheng2019-04-051-4/+2
|
* Fix literal support in token tree to ast item listEdwin Cheng2019-04-051-0/+41
|
* always show token textAleksey Kladov2019-04-021-8/+8
|
* add name resolution from the old implAleksey Kladov2019-03-171-10/+10
| | | | unlike the old impl, this also handles macro imports across crates
* Add parser unit testsWilco Kusee2019-03-031-1/+1
|