Matcher that matches anything except bad strings, bad urls, and unmatched left-paren, left-brace, or left-bracket.
More...
|
static | create (... $args) |
| Create an instance.
|
|
Matcher that matches anything except bad strings, bad urls, and unmatched left-paren, left-brace, or left-bracket.
- Warning
- Be very careful using this!
- See also
- https://www.w3.org/TR/2019/CR-css-syntax-3-20190716/#any-value
◆ __construct()
Wikimedia\CSS\Grammar\AnythingMatcher::__construct |
( |
array | $options = [] | ) |
|
- Parameters
-
array | $options |
- toplevel: (bool) If true, disallows some extra tokens (i.e. it's the draft's
<declaration-value> instead of <any-value> )
- quantifier: (string) Set to '*' or '+' to work like
<value>* or <value>+ but without backtracking. Note this will probably fail to match correctly if anything else is supposed to come after the AnythingMatcher, i.e. only use this where there's nothing else to the end of the input.
|
- Note
- To properly match the draft's
<declaration-value>
or <any-value>
, specify '+' for the 'quantifier' option.
◆ generateMatches()
Wikimedia\CSS\Grammar\AnythingMatcher::generateMatches |
( |
ComponentValueList | $values, |
|
|
| $start, |
|
|
array | $options ) |
|
protected |
The documentation for this class was generated from the following file: