btwael / mammouth

Unfancy PHP
http://mammouth.boutglay.com
MIT License
214 stars 22 forks source link

How to specify multiple-line arrays? #45

Closed hth2 closed 8 years ago

hth2 commented 9 years ago

Hi,

is it possible to declare an array on multiple lines? Like this:

array = [
  key1: val1,
  key2: val2
]

At the moment I get error

[Error: Parse error on line NaN: Unexpected 'OUTDENT']
btwael commented 9 years ago

Thank you for this issue, I will work to fix it!

btwael commented 8 years ago

Multiline can be used now like in Coffee for array and function arguments