aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_syntax/test_data/parser/inline/ok/0129_marco_pat.txt
Commit message (Collapse)AuthorAgeFilesLines
* Migrate tests .txt -> .rastveetaha2020-04-061-37/+0
| | | | | | | | The sytax tree output files now use .rast extension (rust-analyzer syntax tree or rust abstract syntax tree (whatever)). This format has a editors/code/ra_syntax_tree.tmGrammar.json declaration that supplies nice syntax highlighting for .rast files.
* Macro patterns are not confused with expressions.Aleksey Kladov2020-04-031-10/+11
| | | | | | | | | | | We treat macro calls as expressions (there's appropriate Into impl), which causes problem if there's expresison and non-expression macro in the same node (like in the match arm). We fix this problem by nesting macor patterns into another node (the same way we nest path into PathExpr or PathPat). Ideally, we probably should add a similar nesting for macro expressions, but that needs some careful thinking about macros in blocks: `{ am_i_expression!() }`.
* Fix parser for macro call in pattern positionEdwin Cheng2019-12-201-5/+4
|
* update test dataAleksey Kladov2019-09-021-25/+26
|
* move syntax tests to unit testsAleksey Kladov2019-07-241-0/+36