about summary refs log tree commit diff
path: root/crates/syntax/src/validation
AgeCommit message (Collapse)AuthorLines
2021-10-03Add semicolons for consistencyAramis Razzaghipour-1/+1
`clippy::semicolon_if_nothing_returned`
2021-09-27Rename `*Owner` traits to `Has*`Lukas Wirth-1/+1
2021-09-26internal: more reasonable grammar for blocksAleksey Kladov-7/+9
Consider these expples { 92 } async { 92 } 'a: { 92 } #[a] { 92 } Previously the tree for them were BLOCK_EXPR { ... } EFFECT_EXPR async BLOCK_EXPR { ... } EFFECT_EXPR 'a: BLOCK_EXPR { ... } BLOCK_EXPR #[a] { ... } As you see, it gets progressively worse :) The last two items are especially odd. The last one even violates the balanced curleys invariant we have (#10357) The new approach is to say that the stuff in `{}` is stmt_list, and the block is stmt_list + optional modifiers BLOCK_EXPR STMT_LIST { ... } BLOCK_EXPR async STMT_LIST { ... } BLOCK_EXPR 'a: STMT_LIST { ... } BLOCK_EXPR #[a] STMT_LIST { ... }
2021-04-19fix: false positive about inner attrs in docsAleksey Kladov-1/+1
closes #8541
2020-08-12Rename ra_syntax -> syntaxAleksey Kladov-0/+22