about summary refs log tree commit diff
path: root/src/libsyntax/util/parser_testing.rs
AgeCommit message (Collapse)AuthorLines
2016-03-07Auto merge of #29734 - Ryman:whitespace_consistency, r=Aatchbors-49/+59
libsyntax: be more accepting of whitespace in lexer Fixes #29590. Perhaps this may need more thorough testing? r? @Aatch
2016-02-11Remove some unnecessary indirection from AST structuresVadim Petrochenkov-1/+1
2016-01-16libsyntax: accept only whitespace with the PATTERN_WHITE_SPACE propertyKevin Butler-20/+19
This aligns with unicode recommendations and should be stable for all future unicode releases. See http://unicode.org/reports/tr31/#R3. This renames `libsyntax::lexer::is_whitespace` to `is_pattern_whitespace` so potentially breaks users of libsyntax.
2016-01-14libsyntax: make matches_codepattern unicode awareKevin Butler-45/+57
2016-01-14libsyntax: use char::is_whitespace instead of custom implementationsKevin Butler-2/+1
Fixes #29590.
2015-12-30use structured errorsNick Cameron-8/+12
2015-11-10Rename _nopanic methods to remove the suffix.Eli Friedman-4/+4
Just `sed s/_nopanic//g`. Hopefully makes libsyntax a bit more readable.
2015-10-27Update libsyntax tests.Eli Friedman-13/+11
2015-05-14syntax: replace sess.span_diagnostic.cm with sess.codemap().Eduard Burtescu-3/+2
2015-05-14syntax: refactor (Span)Handler and ParseSess constructors to be methods.Eduard Burtescu-4/+3
2015-05-09address fallout in libsyntaxtest.Felix S. Klock II-1/+5
2015-04-24Change name of unit test sub-module to "tests".Johannes Oertel-1/+1
Changes the style guidelines regarding unit tests to recommend using a sub-module named "tests" instead of "test" for unit tests as "test" might clash with imports of libtest.
2015-04-21syntax: Copy unstable str::char_at into libsyntaxErick Tryzelaar-6/+7
2015-04-05Work towards a non-panicing parser (libsyntax)Phil Dawes-1/+1
- Functions in parser.rs return PResult<> rather than panicing - Other functions in libsyntax call panic! explicitly for now if they rely on panicing behaviour. - 'panictry!' macro added as scaffolding while converting panicing functions. (This does the same as 'unwrap()' but is easier to grep for and turn into try!()) - Leaves panicing wrappers for the following functions so that the quote_* macros behave the same: - parse_expr, parse_item, parse_pat, parse_arm, parse_ty, parse_stmt
2015-03-28cleanup: Remove unused braces in use statementsRicho Healey-2/+2
2015-03-13syntax: use lookahead to distinguish inner and outer attributes, instead of ↵Eduard Burtescu-2/+2
passing the latter around.
2015-01-21rollup merge of #20179: eddyb/blind-itemsAlex Crichton-7/+0
Conflicts: src/librustc/diagnostics.rs src/librustdoc/clean/mod.rs src/librustdoc/html/format.rs src/libsyntax/parse/parser.rs
2015-01-21syntax: fix fallout of merging ast::ViewItem into ast::Item.Eduard Burtescu-7/+0
2015-01-17libsyntax: uint types to usizePaul Collier-2/+2
2014-12-13libsyntax: use unboxed closuresJorge Aparicio-1/+3
2014-11-17libsyntax: Add tests for `parse_view_item`Murarth-0/+7
2014-09-14syntax: tests: fix fallout from using ptr::P.Eduard Burtescu-3/+1
2014-09-14syntax: fix fallout from using ptr::P.Eduard Burtescu-4/+5
2014-09-03Fix spelling errors and capitalization.Joseph Crail-2/+2
2014-07-09syntax: doc comments all the thingsCorey Richardson-19/+19
2014-06-14rustc: Obsolete the `@` syntax entirelyAlex Crichton-4/+6
This removes all remnants of `@` pointers from rustc. Additionally, this removes the `GC` structure from the prelude as it seems odd exporting an experimental type in the prelude by default. Closes #14193 [breaking-change]
2014-05-27std: Rename strbuf operations to stringRicho Healey-2/+2
[breaking-change]
2014-05-24core: rename strbuf::StrBuf to string::StringRicho Healey-8/+8
[breaking-change]
2014-05-08libsyntax: Remove uses of `~str` from libsyntax, and fix falloutPatrick Walton-10/+14
2014-04-18Replace all ~"" with "".to_owned()Richo Healey-2/+2
2014-03-30Removed deprecated functions `map` and `flat_map` for vectors and slices.Marvin Löbel-1/+1
2014-03-20Removing imports of std::vec_ng::VecAlex Crichton-2/+0
It's now in the prelude.
2014-03-20rename std::vec_ng -> std::vecDaniel Micay-1/+1
Closes #12771
2014-03-17Fix rustdoc and tests.Eduard Burtescu-1/+2
2014-03-17De-@ ParseSess uses.Eduard Burtescu-26/+7
2014-03-01libsyntax: Fix errors arising from the automated `~[T]` conversionPatrick Walton-0/+2
2014-03-01libsyntax: Mechanically change `~[T]` to `Vec<T>`Patrick Walton-6/+6
2014-02-07Removed @self and @Trait.Eduard Burtescu-2/+2
2014-02-03syntax: Remove usage of io_error in testsAlex Crichton-9/+9
2014-02-02libsyntax: Fix tests.Patrick Walton-2/+2
2014-02-02librustc: Stop using `@str` for source.Patrick Walton-11/+11
2014-01-21Remove unnecessary parentheses.Huon Wilson-1/+1
2014-01-09libsyntax: Renamed types, traits and enum variants to CamelCase.Eduard Burtescu-5/+5
2014-01-03librustc: De-`@mut` the parse sessionPatrick Walton-3/+3
2014-01-02libsyntax: Fix test and merge fallout.Patrick Walton-1/+1
2013-11-26test: Remove all remaining non-procedure uses of `do`.Patrick Walton-8/+8
2013-11-19libsyntax: Change all uses of `&fn` to `||`.Patrick Walton-1/+1
2013-09-29Remove all usage of @ast::CrateAlex Crichton-2/+2
2013-09-06added string_to_ttsJohn Clements-0/+6
2013-09-06add hygiene support fns, move them around.John Clements-8/+7
also adds test cases