147148149150151152153154155156
FirstOf( Sequence( MediaTypeRestriction(), peek(1).addChild(pop()) ), Optional(Ws0(), push(new SpacingNode(" ")), peek(1).addChild(pop())) ), peek(1).addChild(pop()) ); }
174175176177178179180181182183184
Ws0(), "and", Ws0(), '(', Sequence( Ident(), peek().addChild(new SimpleNode(match())), ':', peek().addChild(new SimpleNode(":")), Optional(Ws0()), peek().addChild(new SpacingNode(" ")), ExpressionPhrase() ), ')', peek(1).addChild(pop()) );
829830831832833834835836837
return AnyOf(" \r\n\t\f"); } Rule WhitespaceNode() { return FirstOf( Sequence(OneOrMore(AnyOf(" \t")), peek().addChild(new SpacingNode(match()))), Sequence(FirstOf('\n', "\r\n", '\r', '\f' ), peek().addChild(new LineBreakNode(1))) ); }
853854855856857858859860
} Rule SpacingNode() { return FirstOf( WhitespaceNode(), Sequence(Comment(), peek().addChild(new SpacingNode(match()))) ); }
103104105106107108109110111112113114115116117118119120121
nestedSelectorNode.addChild(0, selectorSegmentNode); } } nestedSelectorGroupNode.addChild(nestedSelectorNode); nestedSelectorGroupNode.addChild(new SpacingNode(" ")); } } } mediaScopeNode.addChild(nestedRuleSet); } if (ruleSetNode.getParent() != null) { ruleSetNode.getParent().addChild(new SpacingNode("\n")); ruleSetNode.getParent().addChild(mediaQueryNode); } } return true;