about summary refs log tree commit diff
path: root/src/test/pretty
AgeCommit message (Collapse)AuthorLines
2011-11-22rustc: Allow trailing comma in record fieldsHaitao Li-0/+8
2011-09-15Add regression tests for previously ambiguous syntactic formsBrian Anderson-0/+37
2011-09-15Remove maybe_protect_block kludge from pretty-printerMarijn Haverbeke-35/+0
It is no longer needed.
2011-09-09Make the pretty printer disambiguatae blocks followed by vec expressions.Jesse Ruderman-0/+2
Semicolons are needed here now that postfix [] is used for vec indexing (the syntax change made in rev 518dc52f85c2efb67aaa1208c02e9a7e0bdaca49).
2011-08-20ReformatBrian Anderson-106/+50
This changes the indexing syntax from .() to [], the vector syntax from ~[] to [] and the extension syntax from #fmt() to #fmt[]
2011-08-19Do better at preserving blank lines during pretty-printingBrian Anderson-0/+15
2011-08-19Don't pretty-print extra blank lines after anon object methodsBrian Anderson-0/+14
2011-08-18Don't pretty-print trailing whitespace for blank lines inside block commentsBrian Anderson-0/+15
2011-08-18Try harder to disambig blocks followed by various exprs in pprust. Closes #840Brian Anderson-0/+65
As it turns out, it's not just unops we need to worry about. Also tuples and anything that requires parens.
2011-08-18Kill another case of a spurious blank line. Closes #809.Graydon Hoare-0/+8
2011-08-18More misc ivec->vec renamingBrian Anderson-2/+2
2011-08-18Pretty-print ivecs as []Brian Anderson-21/+21
2011-08-16Add pp test for interleaving comments through vectors. Closes #679Brian Anderson-0/+60
2011-08-09Port the fuzzer and tests to ivec type [T] syntax.Erick Tryzelaar-9/+1
2011-08-09Change the ivec type syntax to [T].Erick Tryzelaar-0/+18
This preserves the old syntax for now.
2011-08-03Fix the pretty print tests to handle terminal newlines. Sorry!Michael Sullivan-3/+3
2011-08-03Disambiguate unop statements in pretty-printer. Closes #674Brian Anderson-0/+35
2011-08-02Don't pp extra lines after block open when preserving whitespace. Closes #759Brian Anderson-0/+7
2011-08-02Add dedicated pretty-printer tests with new pp-exact directiveBrian Anderson-0/+13
Add a new src/test/pretty directory to hold just source files for testing the pretty-printer. Add a new pp-exact directive. When this directive is followed by a file name it specifies a file containing the output that the pretty-printer should generate. When pp-exact is not followed by a filename it says that the file should pretty-print as written.