Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: crystal-lang/crystal
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 0c5bb33f1519
Choose a base ref
...
head repository: crystal-lang/crystal
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 7124a30d331f
Choose a head ref
  • 2 commits
  • 1 file changed
  • 2 contributors

Commits on Aug 11, 2016

  1. added spec tests to confirm heredocs work tabs + spaces

    this is to address the problem that some
    codebases have mixed space + tab indentation
    (presumably this is unintentional)
    
    enhances tests for issue #3109
    masukomi committed Aug 11, 2016
    Copy the full SHA
    9ba646f View commit details

Commits on Aug 12, 2016

  1. Merge pull request #3141 from masukomi/heredoc_mixed_tabs_and_spaces

    added spec tests to confirm heredocs work tabs + spaces
    Ary Borenszweig authored Aug 12, 2016
    Copy the full SHA
    7124a30 View commit details
Showing with 3 additions and 0 deletions.
  1. +3 −0 spec/compiler/parser/parser_spec.cr
3 changes: 3 additions & 0 deletions spec/compiler/parser/parser_spec.cr
Original file line number Diff line number Diff line change
@@ -1152,6 +1152,9 @@ describe "Parser" do
it_parses "<<-FOO\n1\nFOO + 2", Call.new("1".string, "+", 2.int32)

it_parses "<<-FOO\n\t1\n\tFOO", StringLiteral.new("1")
it_parses "<<-FOO\n \t1\n \tFOO", StringLiteral.new("1")
it_parses "<<-FOO\n \t 1\n \t FOO", StringLiteral.new("1")
it_parses "<<-FOO\n\t 1\n\t FOO", StringLiteral.new("1")

it_parses "enum Foo; A\nB, C\nD = 1; end", EnumDef.new("Foo".path, [Arg.new("A"), Arg.new("B"), Arg.new("C"), Arg.new("D", 1.int32)] of ASTNode)
it_parses "enum Foo; A = 1, B; end", EnumDef.new("Foo".path, [Arg.new("A", 1.int32), Arg.new("B")] of ASTNode)