nodebox / seed

Procedural Content Generator
https://seed.emrg.be/
MIT License
22 stars 8 forks source link

following the preamble syntax for import #22

Closed kunal-mohta closed 6 years ago

kunal-mohta commented 6 years ago

As mentioned in #5

stebanos commented 6 years ago

Looks good, but I would let the if (n.startsWith('import')) conditional go before else if (m).

kunal-mohta commented 6 years ago

I did that. Can I know why you want it to be that way, though?

stebanos commented 6 years ago

Because the import error would not throw if m would be evaluate to true, and import should be seen as a reserved keyword.

kunal-mohta commented 6 years ago

Oh! Okay. I missed that.