Méthode |
Description |
|
append ( $prop, $pos = null ) |
append a property to the current block |
|
argumentDef ( &$args, &$isVararg ) |
delimiter. |
|
assign ( $name = null ) |
Consume an assignment operator
Can optionally take a name that will be set to the current property name |
|
color ( &$out ) |
a # color |
|
end ( ) |
consume an end of statement delimiter |
|
expHelper ( $lhs, $minP ) |
recursively parse infix equation with $lhs at precedence $minP |
|
expression ( &$out ) |
Attempt to consume an expression. |
|
expressionList ( &$exps ) |
a list of expressions |
|
fixTags ( $tags ) |
|
|
func ( &$func ) |
a css function |
|
genericList ( &$out, $parseItem, $delim = "", $flatten = true ) |
|
|
guard ( &$guard ) |
|
|
guardGroup ( &$guardGroup ) |
TODO rename to guardGroup |
|
guards ( &$guards ) |
|
|
import ( &$out ) |
an import statement |
|
interpolation ( &$out ) |
|
|
isDirective ( $dirname, $directives ) |
|
|
keyword ( &$word ) |
consume a keyword |
|
literal ( $what, $eatWhitespace = null ) |
* raw parsing functions |
|
match ( $regex, &$out, $eatWhitespace = null ) |
try to match something on head of buffer |
|
mediaExpression ( &$out ) |
|
|
mediaQuery ( &$out ) |
|
|
mediaQueryList ( &$out ) |
|
|
mixinTags ( &$tags ) |
optionally separated by > (lazy, accepts extra >) |
|
openString ( $end, &$out, $nestingOpen = null, $rejectStrs = null ) |
an unbounded string stopped by $end |
|
parenValue ( &$out ) |
|
|
parseChunk ( ) |
Parse a single chunk off the head of the buffer and append it to the
current parse environment. |
|
peek ( $regex, &$out = null, $from = null ) |
match something without consuming it |
|
pop ( ) |
pop something off the stack |
|
pushBlock ( $selectors = null, $type = null ) |
|
|
pushSpecialBlock ( $type ) |
push a block that doesn't multiply tags |
|
removeComments ( $text ) |
todo: make it work for all functions, not just url |
|
seek ( $where = null ) |
seek to a spot in the buffer or return where we are on no argument |
|
string ( &$out ) |
|
|
tag ( &$tag, $simple = false ) |
a space separated list of selectors |
|
tagBracket ( &$parts, &$hasExpression ) |
a bracketed value (contained within in a tag definition) |
|
tags ( &$tags, $simple = false, $delim = ',' ) |
this accepts a hanging delimiter |
|
to ( $what, &$out, $until = false, $allowNewline = false ) |
$allowNewline, if string, will be used as valid char set |
|
unit ( &$unit ) |
|
|
value ( &$value ) |
a single value |
|
variable ( &$name ) |
consume a less variable |
|
whitespace ( ) |
match some whitespace |
|