marcioAlmada / yay

Yay is a high level PHP preprocessor
https://github.com/marcioAlmada/yay
MIT License
572 stars 35 forks source link

Feature list grammar #41

Open SerafimArts opened 7 years ago

SerafimArts commented 7 years ago

Second argument of list() grammar method can be optional now. This feature adds the ability to specify duplicate fragments with a division by T_WHITESPACE (e.g "\n", "\s", etc...).

marcioAlmada commented 7 years ago

Hi!

I appreciate the pull request. It seems correct, but we need at least one test before merging. A good place to start is https://github.com/marcioAlmada/yay/blob/master/tests/ParserTest.php

:+1: