Skip to content

Commit c554052

Browse files
committed
Release 0.1.6
1 parent 9ccbed7 commit c554052

15 files changed

+151
-23
lines changed

CHANGELOG

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
March 2, 2012 - v0.1.6
2+
3+
* Allow leading semicolon in front of properties (Nicholas C. Zakas)
4+
* Ensure 'ch' is identifier as a length (Nicholas C. Zakas)
5+
6+
17
February 10, 2012 - v0.1.5
28

39
* Cleanup failing test (Nicholas C. Zakas)
@@ -213,3 +219,5 @@ November 28, 2011 - v0.1.0
213219

214220

215221

222+
223+

build.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<project name="parserlib" default="build.all">
22

33
<!-- version number -->
4-
<property name="parserlib.version" value="0.1.5" />
4+
<property name="parserlib.version" value="0.1.6" />
55

66
<!-- the directories containing the source files -->
77
<property name="src.dir" value="./src" />

build/node-parserlib.js

Lines changed: 25 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,11 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
2121
THE 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 */
2525
var 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+
898901
parserlib.util = {
899902
StringReader: StringReader,
900903
SyntaxError : SyntaxError,
@@ -903,6 +906,8 @@ EventTarget : EventTarget,
903906
TokenStreamBase : TokenStreamBase
904907
};
905908
})();
909+
910+
906911
/*
907912
Parser-Lib
908913
Copyright (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
926931
THE 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(){
931936
var EventTarget = parserlib.util.EventTarget,
932937
TokenStreamBase = parserlib.util.TokenStreamBase,
933938
StringReader = parserlib.util.StringReader,
934939
SyntaxError = parserlib.util.SyntaxError,
935940
SyntaxUnit = parserlib.util.SyntaxUnit;
936941

942+
937943
var Colors = {
938944
aliceblue :"#f0f8ff",
939945
antiquewhite :"#faebd7",
@@ -1114,6 +1120,7 @@ function Combinator(text, line, col){
11141120
Combinator.prototype = new SyntaxUnit();
11151121
Combinator.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){
11461153
MediaFeature.prototype = new SyntaxUnit();
11471154
MediaFeature.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){
11891197
MediaQuery.prototype = new SyntaxUnit();
11901198
MediaQuery.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;
39103919
PropertyName.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){
39393949
PropertyValue.prototype = new SyntaxUnit();
39403950
PropertyValue.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){
42854297
Selector.prototype = new SyntaxUnit();
42864298
Selector.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){
43274340
SelectorPart.prototype = new SyntaxUnit();
43284341
SelectorPart.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){
43634377
SelectorSubPart.prototype = new SyntaxUnit();
43644378
SelectorSubPart.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

44914507
var h = /^[0-9a-fA-F]$/,
@@ -5486,6 +5502,7 @@ TokenStream.prototype = mix(new TokenStreamBase(), {
54865502
}
54875503
});
54885504

5505+
54895506
var 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 */
56985716
var Validation = {
@@ -6227,6 +6245,7 @@ var ValidationTypes = {
62276245
}
62286246
};
62296247

6248+
62306249
parserlib.css = {
62316250
Colors :Colors,
62326251
Combinator :Combinator,
@@ -6246,8 +6265,12 @@ ValidationError :ValidationError
62466265
};
62476266
})();
62486267

6268+
6269+
6270+
62496271
(function(){
62506272
for(var prop in parserlib){
62516273
exports[prop] = parserlib[prop];
62526274
}
62536275
})();
6276+

build/npm/lib/node-parserlib.js

Lines changed: 25 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,11 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
2121
THE 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 */
2525
var 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+
898901
parserlib.util = {
899902
StringReader: StringReader,
900903
SyntaxError : SyntaxError,
@@ -903,6 +906,8 @@ EventTarget : EventTarget,
903906
TokenStreamBase : TokenStreamBase
904907
};
905908
})();
909+
910+
906911
/*
907912
Parser-Lib
908913
Copyright (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
926931
THE 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(){
931936
var EventTarget = parserlib.util.EventTarget,
932937
TokenStreamBase = parserlib.util.TokenStreamBase,
933938
StringReader = parserlib.util.StringReader,
934939
SyntaxError = parserlib.util.SyntaxError,
935940
SyntaxUnit = parserlib.util.SyntaxUnit;
936941

942+
937943
var Colors = {
938944
aliceblue :"#f0f8ff",
939945
antiquewhite :"#faebd7",
@@ -1114,6 +1120,7 @@ function Combinator(text, line, col){
11141120
Combinator.prototype = new SyntaxUnit();
11151121
Combinator.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){
11461153
MediaFeature.prototype = new SyntaxUnit();
11471154
MediaFeature.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){
11891197
MediaQuery.prototype = new SyntaxUnit();
11901198
MediaQuery.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;
39103919
PropertyName.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){
39393949
PropertyValue.prototype = new SyntaxUnit();
39403950
PropertyValue.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){
42854297
Selector.prototype = new SyntaxUnit();
42864298
Selector.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){
43274340
SelectorPart.prototype = new SyntaxUnit();
43284341
SelectorPart.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){
43634377
SelectorSubPart.prototype = new SyntaxUnit();
43644378
SelectorSubPart.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

44914507
var h = /^[0-9a-fA-F]$/,
@@ -5486,6 +5502,7 @@ TokenStream.prototype = mix(new TokenStreamBase(), {
54865502
}
54875503
});
54885504

5505+
54895506
var 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 */
56985716
var Validation = {
@@ -6227,6 +6245,7 @@ var ValidationTypes = {
62276245
}
62286246
};
62296247

6248+
62306249
parserlib.css = {
62316250
Colors :Colors,
62326251
Combinator :Combinator,
@@ -6246,8 +6265,12 @@ ValidationError :ValidationError
62466265
};
62476266
})();
62486267

6268+
6269+
6270+
62496271
(function(){
62506272
for(var prop in parserlib){
62516273
exports[prop] = parserlib[prop];
62526274
}
62536275
})();
6276+

build/parserlib-core.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,11 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
2121
THE 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 */
2525
var 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+
898901
parserlib.util = {
899902
StringReader: StringReader,
900903
SyntaxError : SyntaxError,
@@ -903,3 +906,4 @@ EventTarget : EventTarget,
903906
TokenStreamBase : TokenStreamBase
904907
};
905908
})();
909+

0 commit comments

Comments
 (0)