viniciusgerevini / godot-clyde-dialogue

Clyde Dialogue Language Importer and interpreter for Godot.
MIT License
89 stars 11 forks source link

ability to use single quotes for string literals #6

Closed verillious closed 2 years ago

verillious commented 2 years ago

It would be pretty useful to be able to use single quotes too! Here's my use case:

{ set characters = "{\"brain\": {\"face\": \"res://data/tiles/faces/Brain.png\", \"color\": \"PINK\"}}" }

I would love to be able to write this as:

{ set characters = '{"brain": {"face": "res://data/tiles/faces/Brain.png", "color": "PINK"}}' }

would that be a lot of work?

viniciusgerevini commented 2 years ago

Hello @verillious . Thanks for the suggestion. That's a very valid used case. I think I considered this before but I forgot to follow through. I'll look into it this week. I don't think it's a big of a change, it should be straight forward. I'll let you know when I have some news.