Skip to content

[Bug]: exporting Sprites as a BASIC DIM statement causes compile errors due to duplicated { character #56

@kendouglas

Description

@kendouglas

Contact Details

@zxspectrum1984

IDE version

1.7.0

What happened?

Inside the Sprite editor, clicking on the Export and selecting DIM (data as array) and has attributes ticked.
The result is that the Attribute sections and an extra { at the end.

e.g.
DIM CharacterSprites_Fred_Attr(15) AS UByte => { _ <-----This { is not needed
{ _
$38,$38,$38,$38,$38,$38,$38,$3B, _
$3B,$3B,$3B,$3B,$3A,$3A,$3A,$3A _
}

Error and Warning messages

DIM CharacterSprites_Fred_Attr(15) AS UByte => { _ !!**** The { is an extra { and causes the compiler to brake.

	{ _
		$38,$38,$38,$38,$38,$38,$38,$3B, _
		$3B,$3B,$3B,$3B,$3A,$3A,$3A,$3A _
	}

Code of Conduct

  • I agree to follow this project's Code of Conduct

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions