rust-analyzer/crates/ra_syntax/src
bors[bot] 90ef070db3
Merge #2628
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>
2019-12-21 10:47:47 +00:00
..
ast Clippy lints 2019-12-20 15:14:30 -05:00
parsing Attach docs to statics 2019-10-31 16:21:46 -04:00
validation Added test for check doc strings in crates. 2019-09-30 11:58:53 +03:00
algo.rs ⬆️ rowan 2019-12-04 17:15:55 +01:00
ast.rs Attempt to implement typed accessors 2019-11-15 12:05:29 -08:00
fuzz.rs Added test for check doc strings in crates. 2019-09-30 11:58:53 +03:00
grammar.ron Add macro 2.0 support in parser 2019-12-21 18:29:14 +08:00
lib.rs Force passing Source when creating a SourceAnalyzer 2019-11-16 02:12:35 +03:00
parsing.rs allow rustfmt to reorder imports 2019-07-04 23:09:09 +03:00
ptr.rs DynMap 2019-12-06 21:28:05 +01:00
syntax_error.rs Move inclusive range check to validation 2019-11-15 01:04:45 -08:00
syntax_node.rs ⬆️ rowan 2019-12-04 17:15:55 +01:00
tests.rs WIP: switch to fully decomposed tokens internally 2019-09-10 15:46:39 +03:00
validation.rs Attempt to implement typed accessors 2019-11-15 12:05:29 -08:00