trystyncote / scripted-video

This is a project that attempts to produce an animation-looking video based on a given script.
MIT License
0 stars 0 forks source link

Update the Scripter class to allow quotes/brackets to wrap items without cutting lines. #13

Closed trystyncote closed 1 year ago

trystyncote commented 1 year ago

In Issue #11, I wrote that the functionality to change the syntax of the OBJECT keyword family would not properly work with the Scripter class. This is because the braces would encompass a series of traits that are separated with semicolons, which is also the default end-line character. This means the script will try to run the lines such as file-name: addr/img1.png; as a command, when it's only a part of the command. This will cause broken behaviour.

To fix this, the script should treat all types of brackets (parenthesis (), brackets [], braces {}), and all quotes (single ', double ") as border items, where the contents are not matters to be disputed. The Scripter class shouldn't be allowed to manage the contents inside of the brackets, before the closing member.

trystyncote commented 1 year ago

View commit 17a28c2.