Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added support for <propertypattern> #11

Merged
merged 1 commit into from Jun 2, 2015

Conversation

bambi73
Copy link
Contributor

@bambi73 bambi73 commented May 23, 2015

Added support for custom shortcut properties patterns.
Feature is described in Advanced Usage.txt point 14.

@bambi73 bambi73 force-pushed the custom-properties-pattern branch from 16bba4f to bf5636b Compare May 28, 2015 22:02
propertyGroup = propertyPatternElement.get("group")

if propertyName and propertyGroup and propertyPatternElement.text:
if propertyGroup == group:
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

would be nice you would do "if not ...: continue" instead of super-deep nesting :)

@phil65
Copy link
Collaborator

phil65 commented May 29, 2015

looks fine apart from cosmetics (I prefer to use continue instead of deep nesting of conditionals)

@bambi73 bambi73 force-pushed the custom-properties-pattern branch from bf5636b to e4b8f64 Compare June 1, 2015 18:59
@bambi73
Copy link
Contributor Author

bambi73 commented Jun 1, 2015

Reversed conditions and added continue to remove some nesting

@phil65
Copy link
Collaborator

phil65 commented Jun 1, 2015

thx.

BigNoid added a commit that referenced this pull request Jun 2, 2015
@BigNoid BigNoid merged commit e9a6b16 into BigNoid:master Jun 2, 2015
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.

None yet

3 participants