aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_mbe/src/lib.rs
Commit message (Collapse)AuthorAgeFilesLines
* 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
|
* Split parse and expand errorsWilco Kusee2019-03-031-5/+8
|
* Replace option with result in mbeWilco Kusee2019-03-021-3/+12
|
* Add a test for macro parsingAleksey Kladov2019-02-231-2/+59
|
* implement tt -> astAleksey Kladov2019-02-231-1/+1
|
* Fix some typosPascal Hertleif2019-02-121-3/+3
|
* assign ids when converting ttAleksey Kladov2019-02-111-4/+4
|
* Merge #790bors[bot]2019-02-111-10/+10
|\ | | | | | | | | | | | | | | 790: make macro-rules eq r=matklad a=matklad Co-authored-by: Aleksey Kladov <[email protected]>
| * make macro-rules eqAleksey Kladov2019-02-111-10/+10
| |
* | typoAleksey Kladov2019-02-111-1/+1
|/