diff --git a/parse/type_declaration_test.go b/parse/type_declaration_test.go index 23377b6..a091507 100644 --- a/parse/type_declaration_test.go +++ b/parse/type_declaration_test.go @@ -45,6 +45,15 @@ func TestTypeDeclarationMultipleLabels(t *testing.T) { testExpectedTypeDeclaration(t, src, expected) } +func TestTypeDeclarationLongOneLine(t *testing.T) { + src := `type $struct { .a .b .c $8 *2102 ^1337 * ^ * .d .e .f $1234 }` + expected := `type $struct { + .a .b .c $8 *2102 ^1337 * ^ * + .d .e .f $1234 +}` + testExpectedTypeDeclaration(t, src, expected) +} + // MARK: Helpers func testExpectedTypeDeclaration(t *testing.T, src, expected string) {