Method |
Description |
|
append ( array $statement, integer $pos = null ) |
Append statement to current block |
|
appendComment ( array $comment ) |
Append comment to current block |
|
argValue ( array &$out ) : boolean |
Parse argument value |
|
argValues ( array &$out ) : boolean |
Parse argument values |
|
argumentDef ( array &$out ) : boolean |
Parse mixin/function definition argument list |
|
argumentList ( array &$out ) : boolean |
Parse function call argument list |
|
color ( array &$out ) : boolean |
Parse color |
|
end ( ) : boolean |
Consume an end of statement delimiter |
|
expHelper ( array $lhs, integer $minP ) : array |
Parse left-hand side of subexpression |
|
expression ( array &$out ) : boolean |
Parse expression |
|
flattenList ( array $value ) : array |
Turn list of length 1 into value type |
|
func ( &$func ) : boolean |
Parse function call |
|
genericList ( array &$out, callable $parseItem, string $delim = '', boolean $flatten = true ) : boolean |
Parse generic list |
|
interpolation ( array &$out, boolean $lookWhite = true ) : boolean |
Parser interpolation |
|
keyword ( string &$word, boolean $eatWhitespace = null ) : boolean |
Parse a keyword |
|
last ( ) : array | null |
Returns last child was appended |
|
literal ( string $what, boolean $eatWhitespace = null ) : boolean |
Match literal string |
|
map ( array &$out ) : boolean |
Parse map |
|
match ( string $regex, array &$out, boolean $eatWhitespace = null ) : boolean |
Try to match something on head of buffer |
|
matchString ( array &$m, string $delim ) : boolean |
Match string looking for either ending delim, escape, or string interpolation |
|
mediaExpression ( array &$out ) : boolean |
Parse media expression |
|
mediaQuery ( array &$out ) : boolean |
Parse media query |
|
mediaQueryList ( array &$out ) : boolean |
Parse media query list |
|
mixedKeyword ( array &$out ) : boolean |
Parse keyword or interpolation |
|
openString ( string $end, array &$out, string $nestingOpen = null ) : boolean |
Parse an unbounded string stopped by $end |
|
parenValue ( array &$out ) : boolean |
Parse parenthesized value |
|
parseChunk ( ) : boolean |
Parse a single chunk off the head of the buffer and append it to the
current parse environment. |
|
peek ( string $regex, array &$out, integer $from = null ) : integer |
Peek input stream |
|
placeholder ( string &$placeholder ) : boolean |
Parse a placeholder |
|
popBlock ( ) : Leafo\ScssPhp\Block |
Pop scope and return last block |
|
progid ( array &$out ) : boolean |
Parse "progid:" |
|
propertyName ( array &$out ) : boolean |
Parse property name (as an array of parts or a string) |
|
pushBlock ( array $selectors, integer $pos ) : Leafo\ScssPhp\Block |
Push block onto parse tree |
|
pushSpecialBlock ( string $type, integer $pos ) : Leafo\ScssPhp\Block |
Push special (named) block onto parse tree |
|
seek ( integer $where = null ) : integer |
Seek to position in input stream (or return current position in input stream) |
|
selector ( array &$out ) : boolean |
Parse whitespace separated selector list |
|
selectorSingle ( array &$out ) : boolean |
Parse the parts that make up a selector |
|
selectors ( array &$out ) : boolean |
Parse comma separated selector list |
|
show ( ) |
|
|
spaceList ( array &$out ) : boolean |
Parse space separated value list |
|
string ( array &$out ) : boolean |
Parse string |
|
stripAssignmentFlags ( array &$value ) : array |
Strip assignment flag from the list |
|
stripOptionalFlag ( array &$selectors ) : string |
Strip optional flag from selector list |
|
to ( $what, &$out, $until = false, $allowNewline = false ) |
|
|
unit ( &$unit ) : boolean |
Parse number with unit |
|
url ( array &$out ) : boolean |
Parse a url |
|
value ( array &$out ) : boolean |
Parse value |
|
valueList ( string &$out ) : boolean |
Parse comma separated value list |
|
variable ( array &$out ) : boolean |
Parse a variable |
|
whitespace ( ) : boolean |
Match some whitespace |
|