sjbarag / brs

An interpreter for the BrightScript language that runs on non-Roku platforms.
MIT License
114 stars 43 forks source link

Colon as separator between anonymous object properties #195

Closed TwitchBronBron closed 5 years ago

TwitchBronBron commented 5 years ago

Aparently brightscript allows you to use a colon to separate properties in objects. This is technically valid syntax. I tested each of these against a live roku, and they all printed the values out properly:

image

So is this (colon and then newline): image

sjbarag commented 5 years ago

I'll never not be surprised by BrightScript! This makes sense in the context that : is valid to separate… I guess statements (?), but it's certainly something I've never thought to try intentionally :smiley:

Thanks for checking the newline cases for me as well! :heart:

TwitchBronBron commented 5 years ago

I'm working on this