Skip to content

Add support for bareword with leading hyphyen, in-place arrayref and hashref in an import list#7

Merged
charsbar merged 1 commit intodomm:masterfrom
yak1ex:bareword_leading_hyphen
Apr 23, 2013
Merged

Add support for bareword with leading hyphyen, in-place arrayref and hashref in an import list#7
charsbar merged 1 commit intodomm:masterfrom
yak1ex:bareword_leading_hyphen

Conversation

@yak1ex
Copy link
Contributor

@yak1ex yak1ex commented Apr 18, 2013

Sorry for pull request just after the release.

There are some modules to use import list for not only a list but also some configuration.
At least, I know Data::Section is one of the modules.
The followings are excerpts from Data::Section documentation and test,

use Data::Dumper -setup;
use Data::Section { installer => method_installer }, -setup;
use Data::Section -setup => { header_re => qr/^\@\@\s*(\S+)/ };

These cases are not covered by the current grammar.
So, I tried to adjust the grammar to catch -bareword, [ arrayref ], and { hashref }.
This is not yet complete list but it might cover most use cases hopefully.

charsbar added a commit that referenced this pull request Apr 23, 2013
Add support for bareword with leading hyphyen, in-place arrayref and hashref in an import list
@charsbar charsbar merged commit 0310c97 into domm:master Apr 23, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants