mirror of
https://github.com/rust-lang/rust-analyzer
synced 2024-12-31 23:38:45 +00:00
90ef070db3
2628: Add macro 2.0 support in parser r=matklad a=edwin0cheng This PR added a new syntax kind : `MACRO_DEF` and a keyword `MACRO_KW` there are two syntax for declarative macro 2.0 : 1. Normal : `macro m { ($i:ident) => {} }` , which handle similar to legacy one. 2. Call like: `macro m($i:ident) {}`, it produces a single token tree which have two child token trees : `($i:ident)` and `{}` Co-authored-by: Edwin Cheng <edwin0cheng@gmail.com> |
||
---|---|---|
.. | ||
ast | ||
parsing | ||
validation | ||
algo.rs | ||
ast.rs | ||
fuzz.rs | ||
grammar.ron | ||
lib.rs | ||
parsing.rs | ||
ptr.rs | ||
syntax_error.rs | ||
syntax_node.rs | ||
tests.rs | ||
validation.rs |