Skip to content

Conversation

@cscott
Copy link
Contributor

@cscott cscott commented Feb 6, 2016

This patch set continues the work on the Matcher framework to add a simple parser to create Matcher objects from strings in the CSS formal syntax. This then lets us represent most validators and properties as formal syntax strings, saving function-based validation for basic data types ("simple" validators) and hard cases.

The Matcher object grew to the point that I went ahead and factored it out into its own file as the last patch here.

These values are global: they are valid for every CSS property.
This allows us to use the "Formal Syntax" from the CSS spec.  It also
lets us simplify the code by removing the multiProperty and groupProperty
methods from Validation.
@cscott cscott mentioned this pull request Feb 6, 2016
@cscott
Copy link
Contributor Author

cscott commented Feb 8, 2016

@XhmikosR could you take a look at this & merge it if possible. That would clear the way for me to submit the "de-ant-ify" patches as a PR. (Those were based on these.)

cscott added a commit that referenced this pull request Feb 10, 2016
Represent most property validators as strings matching the CSS spec formal syntax
@cscott cscott merged commit af9ed3f into CSSLint:master Feb 10, 2016
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.

1 participant