about summary refs log tree commit diff
path: root/src/libsyntax/parse/parser/diagnostics.rs
AgeCommit message (Collapse)AuthorLines
2019-10-30Do not complain about missing `fn main()` in some casesEsteban Küber-0/+5
2019-10-30Reduce ammount of errors given unclosed delimiterEsteban Küber-8/+37
When in a file with a non-terminated item, catch the error and consume the block instead of trying to recover it more granularly in order to reduce the amount of unrelated errors that would be fixed after adding the missing closing brace. Also point out the possible location of the missing closing brace.
2019-10-28review commentsEsteban Küber-42/+39
2019-10-28Tweak unexpected token wordingEsteban Küber-5/+5
2019-10-28Use heuristics to recover parsing of missing `;`Esteban Küber-37/+54
- Detect `,` and `:` typos where `;` was intended. - When the next token could have been the start of a new statement, detect a missing semicolon.
2019-10-16make tidy happyMazdak Farrokhzad-2/+10
2019-10-16move SeqSep to parser.rsMazdak Farrokhzad-2/+4
2019-10-16move syntax::ext to new crate syntax_expandMazdak Farrokhzad-3/+3
2019-10-16syntax: reduce visibilitiesMazdak Farrokhzad-38/+39
2019-10-16move diagnostics.rs into parser/Mazdak Farrokhzad-0/+1483