stevearc / godot_parser

Python library for parsing Godot scene files
MIT License
54 stars 11 forks source link

Supports quoted keys in properties #1

Closed jjmontesl closed 3 years ago

jjmontesl commented 3 years ago

Some properties can have spaces in their names. In this case Godot quotes them.

This is an example of such situation:

[node name="AnimationPlayer" type="AnimationPlayer" parent="Scene/TestDevel/Zone1/TestAnim"]
autoplay = "Test"
playback_process_mode = 0
anims/Test = SubResource( 66 )
"anims/Test 2" = SubResource( 67 )

This pull request modifies the parser definition to add support quoted keys.

stevearc commented 3 years ago

Looks good to me. Thanks for fixing this oversight!