rust/crates/ra_parser/src
Aleksey Kladov da8eb29a2f Macro patterns are not confused with expressions.
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!() }`.
2020-04-03 16:12:38 +02:00
..
grammar Macro patterns are not confused with expressions. 2020-04-03 16:12:38 +02:00
syntax_kind Macro patterns are not confused with expressions. 2020-04-03 16:12:38 +02:00
event.rs
grammar.rs Rename ast::ImplBlock -> ast::ImplDef 2020-02-29 21:33:15 +01:00
lib.rs Implement concat macro 2020-03-04 01:21:14 +08:00
parser.rs Fix dat comment 2020-02-22 14:16:13 +02:00
syntax_kind.rs
token_set.rs Touch up TokenSet a bit 2019-12-19 17:13:33 +01:00