@@ -21,10 +21,11 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
2121THE SOFTWARE.
2222
2323*/
24- /* Version v@VERSION@, Build time: 2-March-2012 02:42:45 */
24+ /* Version v@VERSION@, Build time: 2-March-2012 02:44:32 */
2525var parserlib = { } ;
2626( function ( ) {
2727
28+
2829/**
2930 * A generic base to inherit from for any object
3031 * that needs event handling.
@@ -895,6 +896,8 @@ TokenStreamBase.prototype = {
895896} ;
896897
897898
899+
900+
898901parserlib . util = {
899902StringReader : StringReader ,
900903SyntaxError : SyntaxError ,
@@ -903,6 +906,8 @@ EventTarget : EventTarget,
903906TokenStreamBase : TokenStreamBase
904907} ;
905908} ) ( ) ;
909+
910+
906911/*
907912Parser-Lib
908913Copyright (c) 2009-2011 Nicholas C. Zakas. All rights reserved.
@@ -926,14 +931,15 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
926931THE SOFTWARE.
927932
928933*/
929- /* Version v@VERSION@, Build time: 2-March-2012 02:42:45 */
934+ /* Version v@VERSION@, Build time: 2-March-2012 02:44:32 */
930935( function ( ) {
931936var EventTarget = parserlib . util . EventTarget ,
932937TokenStreamBase = parserlib . util . TokenStreamBase ,
933938StringReader = parserlib . util . StringReader ,
934939SyntaxError = parserlib . util . SyntaxError ,
935940SyntaxUnit = parserlib . util . SyntaxUnit ;
936941
942+
937943var Colors = {
938944 aliceblue :"#f0f8ff" ,
939945 antiquewhite :"#faebd7" ,
@@ -1114,6 +1120,7 @@ function Combinator(text, line, col){
11141120Combinator . prototype = new SyntaxUnit ( ) ;
11151121Combinator . prototype . constructor = Combinator ;
11161122
1123+
11171124/*global SyntaxUnit, Parser*/
11181125/**
11191126 * Represents a media feature, such as max-width:500.
@@ -1146,6 +1153,7 @@ function MediaFeature(name, value){
11461153MediaFeature . prototype = new SyntaxUnit ( ) ;
11471154MediaFeature . prototype . constructor = MediaFeature ;
11481155
1156+
11491157/*global SyntaxUnit, Parser*/
11501158/**
11511159 * Represents an individual media query.
@@ -1189,6 +1197,7 @@ function MediaQuery(modifier, mediaType, features, line, col){
11891197MediaQuery . prototype = new SyntaxUnit ( ) ;
11901198MediaQuery . prototype . constructor = MediaQuery ;
11911199
1200+
11921201/*global Tokens, TokenStream, SyntaxError, Properties, Validation, ValidationError, SyntaxUnit,
11931202 PropertyValue, PropertyValuePart, SelectorPart, SelectorSubPart, Selector,
11941203 PropertyName, Combinator, MediaFeature, MediaQuery, EventTarget */
@@ -3910,6 +3919,7 @@ PropertyName.prototype.constructor = PropertyName;
39103919PropertyName . prototype . toString = function ( ) {
39113920 return ( this . hack ? this . hack : "" ) + this . text ;
39123921} ;
3922+
39133923/*global SyntaxUnit, Parser*/
39143924/**
39153925 * Represents a single part of a CSS property value, meaning that it represents
@@ -3939,6 +3949,7 @@ function PropertyValue(parts, line, col){
39393949PropertyValue . prototype = new SyntaxUnit ( ) ;
39403950PropertyValue . prototype . constructor = PropertyValue ;
39413951
3952+
39423953/*global SyntaxUnit, Parser*/
39433954/**
39443955 * A utility class that allows for easy iteration over the various parts of a
@@ -4064,6 +4075,7 @@ PropertyValueIterator.prototype.restore = function(){
40644075 }
40654076} ;
40664077
4078+
40674079/*global SyntaxUnit, Parser, Colors*/
40684080/**
40694081 * Represents a single part of a CSS property value, meaning that it represents
@@ -4285,6 +4297,7 @@ function Selector(parts, line, col){
42854297Selector . prototype = new SyntaxUnit ( ) ;
42864298Selector . prototype . constructor = Selector ;
42874299
4300+
42884301/*global SyntaxUnit, Parser*/
42894302/**
42904303 * Represents a single part of a selector string, meaning a single set of
@@ -4327,6 +4340,7 @@ function SelectorPart(elementName, modifiers, text, line, col){
43274340SelectorPart . prototype = new SyntaxUnit ( ) ;
43284341SelectorPart . prototype . constructor = SelectorPart ;
43294342
4343+
43304344/*global SyntaxUnit, Parser*/
43314345/**
43324346 * Represents a selector modifier string, meaning a class name, element name,
@@ -4363,6 +4377,7 @@ function SelectorSubPart(text, type, line, col){
43634377SelectorSubPart . prototype = new SyntaxUnit ( ) ;
43644378SelectorSubPart . prototype . constructor = SelectorSubPart ;
43654379
4380+
43664381/*global Pseudos, SelectorPart*/
43674382/**
43684383 * Represents a selector's specificity.
@@ -4486,6 +4501,7 @@ Specificity.calculate = function(selector){
44864501
44874502 return new Specificity ( 0 , b , c , d ) ;
44884503} ;
4504+
44894505/*global Tokens, TokenStreamBase*/
44904506
44914507var h = / ^ [ 0 - 9 a - f A - F ] $ / ,
@@ -5486,6 +5502,7 @@ TokenStream.prototype = mix(new TokenStreamBase(), {
54865502 }
54875503} ) ;
54885504
5505+
54895506var Tokens = [
54905507
54915508 /*
@@ -5693,6 +5710,7 @@ var Tokens = [
56935710
56945711
56955712
5713+
56965714//This file will likely change a lot! Very experimental!
56975715/*global Properties, ValidationTypes, ValidationError, PropertyValueIterator */
56985716var Validation = {
@@ -6227,6 +6245,7 @@ var ValidationTypes = {
62276245 }
62286246} ;
62296247
6248+
62306249parserlib . css = {
62316250Colors :Colors ,
62326251Combinator :Combinator ,
@@ -6246,8 +6265,12 @@ ValidationError :ValidationError
62466265} ;
62476266} ) ( ) ;
62486267
6268+
6269+
6270+
62496271( function ( ) {
62506272for ( var prop in parserlib ) {
62516273exports [ prop ] = parserlib [ prop ] ;
62526274}
62536275} ) ( ) ;
6276+
0 commit comments