Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Release v0.9.1

  • Loading branch information...
commit a90d8f2b1fa6f67c69c3a9288cdd82bf5e8217a8 1 parent a142000
@nzakas nzakas authored
View
8 CHANGELOG
@@ -1,3 +1,9 @@
+January 4, 2012 - v0.9.1
+
+* Updated parser to fix validation issues (fixes #219) (Nicholas C. Zakas)
+* Fixed license info, incorrectly said it was BSD but is actually MIT (Nicholas C. Zakas)
+
+
January 4, 2012 - v0.9.0
* Updated parser color names (fixes #217) (Nicholas C. Zakas)
@@ -212,3 +218,5 @@ June 15, 2011 - v0.1.0
+
+
View
2  build.xml
@@ -1,7 +1,7 @@
<project name="csslint" default="build.all">
<!-- version number -->
- <property name="csslint.version" value="0.9.0" />
+ <property name="csslint.version" value="0.9.1" />
<!-- the directories containing the source files -->
<property name="src.dir" value="./src" />
View
23 release/csslint-node.js
@@ -21,7 +21,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
*/
-/* Build time: 4-January-2012 09:27:30 */
+/* Build time: 4-January-2012 05:18:36 */
/*!
Parser-Lib
@@ -46,7 +46,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
*/
-/* Version v0.1.1, Build time: 4-January-2012 09:10:14 */
+/* Version v0.1.2, Build time: 4-January-2012 05:14:28 */
var parserlib = {};
(function(){
@@ -956,7 +956,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
*/
-/* Version v0.1.1, Build time: 4-January-2012 09:10:14 */
+/* Version v0.1.2, Build time: 4-January-2012 05:14:28 */
(function(){
var EventTarget = parserlib.util.EventTarget,
TokenStreamBase = parserlib.util.TokenStreamBase,
@@ -5685,7 +5685,7 @@ var Validation = {
if (literals.length) {
msg.push("one of (" + literals.join(" | ") + ")");
}
- throw new ValidationError("Expected " + msg.join(" or ") + " but found '" + part + "'.", value.line, value.col);
+ throw new ValidationError("Expected " + (msg.join(" or ") || "end of value") + " but found '" + part + "'.", value.line, value.col);
}
@@ -5694,9 +5694,9 @@ var Validation = {
}
//for groups, make sure all items are there
- if (group && group.total != types.length){
- throw new ValidationError("Expected all of (" + types.join(", ") + ") but found '" + value + "'.", value.line, value.col);
- }
+ //if (group && group.total != types.length){
+ // throw new ValidationError("Expected all of (" + types.join(", ") + ") but found '" + value + "'.", value.line, value.col);
+ //}
}
},
@@ -5941,6 +5941,7 @@ var Validation = {
"<shadow>": function(expression) {
//inset? && [ <length>{2,4} && <color>? ]
var result = false,
+ inset = false,
count = 0,
part;
@@ -5950,6 +5951,7 @@ var Validation = {
if (this.literal(part, "inset")){
expression.next();
part = expression.peek();
+ inset = true;
}
while (part && this["<length>"](part) && count < 4) {
@@ -5962,9 +5964,14 @@ var Validation = {
if (part) {
if (this["<color>"](part)) {
expression.next();
+ part = expression.peek();
}
}
+ if (part && this.literal(part, "inset") && !inset){
+ expression.next();
+ }
+
result = (count >= 2 && count <= 4);
}
@@ -6162,7 +6169,7 @@ var CSSLint = (function(){
formatters = [],
api = new parserlib.util.EventTarget();
- api.version = "0.9.0";
+ api.version = "0.9.1";
//-------------------------------------------------------------------------
// Rule Management
View
23 release/csslint-rhino.js
@@ -21,7 +21,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
*/
-/* Build time: 4-January-2012 09:27:30 */
+/* Build time: 4-January-2012 05:18:36 */
var CSSLint = (function(){
/*!
@@ -47,7 +47,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
*/
-/* Version v0.1.1, Build time: 4-January-2012 09:10:14 */
+/* Version v0.1.2, Build time: 4-January-2012 05:14:28 */
var parserlib = {};
(function(){
@@ -957,7 +957,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
*/
-/* Version v0.1.1, Build time: 4-January-2012 09:10:14 */
+/* Version v0.1.2, Build time: 4-January-2012 05:14:28 */
(function(){
var EventTarget = parserlib.util.EventTarget,
TokenStreamBase = parserlib.util.TokenStreamBase,
@@ -5686,7 +5686,7 @@ var Validation = {
if (literals.length) {
msg.push("one of (" + literals.join(" | ") + ")");
}
- throw new ValidationError("Expected " + msg.join(" or ") + " but found '" + part + "'.", value.line, value.col);
+ throw new ValidationError("Expected " + (msg.join(" or ") || "end of value") + " but found '" + part + "'.", value.line, value.col);
}
@@ -5695,9 +5695,9 @@ var Validation = {
}
//for groups, make sure all items are there
- if (group && group.total != types.length){
- throw new ValidationError("Expected all of (" + types.join(", ") + ") but found '" + value + "'.", value.line, value.col);
- }
+ //if (group && group.total != types.length){
+ // throw new ValidationError("Expected all of (" + types.join(", ") + ") but found '" + value + "'.", value.line, value.col);
+ //}
}
},
@@ -5942,6 +5942,7 @@ var Validation = {
"<shadow>": function(expression) {
//inset? && [ <length>{2,4} && <color>? ]
var result = false,
+ inset = false,
count = 0,
part;
@@ -5951,6 +5952,7 @@ var Validation = {
if (this.literal(part, "inset")){
expression.next();
part = expression.peek();
+ inset = true;
}
while (part && this["<length>"](part) && count < 4) {
@@ -5963,9 +5965,14 @@ var Validation = {
if (part) {
if (this["<color>"](part)) {
expression.next();
+ part = expression.peek();
}
}
+ if (part && this.literal(part, "inset") && !inset){
+ expression.next();
+ }
+
result = (count >= 2 && count <= 4);
}
@@ -6163,7 +6170,7 @@ var CSSLint = (function(){
formatters = [],
api = new parserlib.util.EventTarget();
- api.version = "0.9.0";
+ api.version = "0.9.1";
//-------------------------------------------------------------------------
// Rule Management
View
23 release/csslint-worker.js
@@ -21,7 +21,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
*/
-/* Build time: 4-January-2012 09:27:30 */
+/* Build time: 4-January-2012 05:18:36 */
/*!
Parser-Lib
@@ -46,7 +46,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
*/
-/* Version v0.1.1, Build time: 4-January-2012 09:10:14 */
+/* Version v0.1.2, Build time: 4-January-2012 05:14:28 */
var parserlib = {};
(function(){
@@ -956,7 +956,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
*/
-/* Version v0.1.1, Build time: 4-January-2012 09:10:14 */
+/* Version v0.1.2, Build time: 4-January-2012 05:14:28 */
(function(){
var EventTarget = parserlib.util.EventTarget,
TokenStreamBase = parserlib.util.TokenStreamBase,
@@ -5685,7 +5685,7 @@ var Validation = {
if (literals.length) {
msg.push("one of (" + literals.join(" | ") + ")");
}
- throw new ValidationError("Expected " + msg.join(" or ") + " but found '" + part + "'.", value.line, value.col);
+ throw new ValidationError("Expected " + (msg.join(" or ") || "end of value") + " but found '" + part + "'.", value.line, value.col);
}
@@ -5694,9 +5694,9 @@ var Validation = {
}
//for groups, make sure all items are there
- if (group && group.total != types.length){
- throw new ValidationError("Expected all of (" + types.join(", ") + ") but found '" + value + "'.", value.line, value.col);
- }
+ //if (group && group.total != types.length){
+ // throw new ValidationError("Expected all of (" + types.join(", ") + ") but found '" + value + "'.", value.line, value.col);
+ //}
}
},
@@ -5941,6 +5941,7 @@ var Validation = {
"<shadow>": function(expression) {
//inset? && [ <length>{2,4} && <color>? ]
var result = false,
+ inset = false,
count = 0,
part;
@@ -5950,6 +5951,7 @@ var Validation = {
if (this.literal(part, "inset")){
expression.next();
part = expression.peek();
+ inset = true;
}
while (part && this["<length>"](part) && count < 4) {
@@ -5962,9 +5964,14 @@ var Validation = {
if (part) {
if (this["<color>"](part)) {
expression.next();
+ part = expression.peek();
}
}
+ if (part && this.literal(part, "inset") && !inset){
+ expression.next();
+ }
+
result = (count >= 2 && count <= 4);
}
@@ -6162,7 +6169,7 @@ var CSSLint = (function(){
formatters = [],
api = new parserlib.util.EventTarget();
- api.version = "0.9.0";
+ api.version = "0.9.1";
//-------------------------------------------------------------------------
// Rule Management
View
23 release/csslint-wsh.js
@@ -21,7 +21,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
*/
-/* Build time: 4-January-2012 09:27:30 */
+/* Build time: 4-January-2012 05:18:36 */
var CSSLint = (function(){
/*!
@@ -47,7 +47,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
*/
-/* Version v0.1.1, Build time: 4-January-2012 09:10:14 */
+/* Version v0.1.2, Build time: 4-January-2012 05:14:28 */
var parserlib = {};
(function(){
@@ -957,7 +957,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
*/
-/* Version v0.1.1, Build time: 4-January-2012 09:10:14 */
+/* Version v0.1.2, Build time: 4-January-2012 05:14:28 */
(function(){
var EventTarget = parserlib.util.EventTarget,
TokenStreamBase = parserlib.util.TokenStreamBase,
@@ -5686,7 +5686,7 @@ var Validation = {
if (literals.length) {
msg.push("one of (" + literals.join(" | ") + ")");
}
- throw new ValidationError("Expected " + msg.join(" or ") + " but found '" + part + "'.", value.line, value.col);
+ throw new ValidationError("Expected " + (msg.join(" or ") || "end of value") + " but found '" + part + "'.", value.line, value.col);
}
@@ -5695,9 +5695,9 @@ var Validation = {
}
//for groups, make sure all items are there
- if (group && group.total != types.length){
- throw new ValidationError("Expected all of (" + types.join(", ") + ") but found '" + value + "'.", value.line, value.col);
- }
+ //if (group && group.total != types.length){
+ // throw new ValidationError("Expected all of (" + types.join(", ") + ") but found '" + value + "'.", value.line, value.col);
+ //}
}
},
@@ -5942,6 +5942,7 @@ var Validation = {
"<shadow>": function(expression) {
//inset? && [ <length>{2,4} && <color>? ]
var result = false,
+ inset = false,
count = 0,
part;
@@ -5951,6 +5952,7 @@ var Validation = {
if (this.literal(part, "inset")){
expression.next();
part = expression.peek();
+ inset = true;
}
while (part && this["<length>"](part) && count < 4) {
@@ -5963,9 +5965,14 @@ var Validation = {
if (part) {
if (this["<color>"](part)) {
expression.next();
+ part = expression.peek();
}
}
+ if (part && this.literal(part, "inset") && !inset){
+ expression.next();
+ }
+
result = (count >= 2 && count <= 4);
}
@@ -6163,7 +6170,7 @@ var CSSLint = (function(){
formatters = [],
api = new parserlib.util.EventTarget();
- api.version = "0.9.0";
+ api.version = "0.9.1";
//-------------------------------------------------------------------------
// Rule Management
View
23 release/csslint.js
@@ -21,7 +21,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
*/
-/* Build time: 4-January-2012 09:27:30 */
+/* Build time: 4-January-2012 05:18:36 */
var CSSLint = (function(){
/*!
@@ -47,7 +47,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
*/
-/* Version v0.1.1, Build time: 4-January-2012 09:10:14 */
+/* Version v0.1.2, Build time: 4-January-2012 05:14:28 */
var parserlib = {};
(function(){
@@ -957,7 +957,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
*/
-/* Version v0.1.1, Build time: 4-January-2012 09:10:14 */
+/* Version v0.1.2, Build time: 4-January-2012 05:14:28 */
(function(){
var EventTarget = parserlib.util.EventTarget,
TokenStreamBase = parserlib.util.TokenStreamBase,
@@ -5686,7 +5686,7 @@ var Validation = {
if (literals.length) {
msg.push("one of (" + literals.join(" | ") + ")");
}
- throw new ValidationError("Expected " + msg.join(" or ") + " but found '" + part + "'.", value.line, value.col);
+ throw new ValidationError("Expected " + (msg.join(" or ") || "end of value") + " but found '" + part + "'.", value.line, value.col);
}
@@ -5695,9 +5695,9 @@ var Validation = {
}
//for groups, make sure all items are there
- if (group && group.total != types.length){
- throw new ValidationError("Expected all of (" + types.join(", ") + ") but found '" + value + "'.", value.line, value.col);
- }
+ //if (group && group.total != types.length){
+ // throw new ValidationError("Expected all of (" + types.join(", ") + ") but found '" + value + "'.", value.line, value.col);
+ //}
}
},
@@ -5942,6 +5942,7 @@ var Validation = {
"<shadow>": function(expression) {
//inset? && [ <length>{2,4} && <color>? ]
var result = false,
+ inset = false,
count = 0,
part;
@@ -5951,6 +5952,7 @@ var Validation = {
if (this.literal(part, "inset")){
expression.next();
part = expression.peek();
+ inset = true;
}
while (part && this["<length>"](part) && count < 4) {
@@ -5963,9 +5965,14 @@ var Validation = {
if (part) {
if (this["<color>"](part)) {
expression.next();
+ part = expression.peek();
}
}
+ if (part && this.literal(part, "inset") && !inset){
+ expression.next();
+ }
+
result = (count >= 2 && count <= 4);
}
@@ -6163,7 +6170,7 @@ var CSSLint = (function(){
formatters = [],
api = new parserlib.util.EventTarget();
- api.version = "0.9.0";
+ api.version = "0.9.1";
//-------------------------------------------------------------------------
// Rule Management
View
2  release/npm/cli.js
@@ -1,5 +1,5 @@
#!/usr/bin/env node
-/* Build time: 4-January-2012 09:27:30 */
+/* Build time: 4-January-2012 05:18:36 */
/*
* Encapsulates all of the CLI functionality. The api argument simply
View
23 release/npm/lib/csslint-node.js
@@ -21,7 +21,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
*/
-/* Build time: 4-January-2012 09:27:30 */
+/* Build time: 4-January-2012 05:18:36 */
/*!
Parser-Lib
@@ -46,7 +46,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
*/
-/* Version v0.1.1, Build time: 4-January-2012 09:10:14 */
+/* Version v0.1.2, Build time: 4-January-2012 05:14:28 */
var parserlib = {};
(function(){
@@ -956,7 +956,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
*/
-/* Version v0.1.1, Build time: 4-January-2012 09:10:14 */
+/* Version v0.1.2, Build time: 4-January-2012 05:14:28 */
(function(){
var EventTarget = parserlib.util.EventTarget,
TokenStreamBase = parserlib.util.TokenStreamBase,
@@ -5685,7 +5685,7 @@ var Validation = {
if (literals.length) {
msg.push("one of (" + literals.join(" | ") + ")");
}
- throw new ValidationError("Expected " + msg.join(" or ") + " but found '" + part + "'.", value.line, value.col);
+ throw new ValidationError("Expected " + (msg.join(" or ") || "end of value") + " but found '" + part + "'.", value.line, value.col);
}
@@ -5694,9 +5694,9 @@ var Validation = {
}
//for groups, make sure all items are there
- if (group && group.total != types.length){
- throw new ValidationError("Expected all of (" + types.join(", ") + ") but found '" + value + "'.", value.line, value.col);
- }
+ //if (group && group.total != types.length){
+ // throw new ValidationError("Expected all of (" + types.join(", ") + ") but found '" + value + "'.", value.line, value.col);
+ //}
}
},
@@ -5941,6 +5941,7 @@ var Validation = {
"<shadow>": function(expression) {
//inset? && [ <length>{2,4} && <color>? ]
var result = false,
+ inset = false,
count = 0,
part;
@@ -5950,6 +5951,7 @@ var Validation = {
if (this.literal(part, "inset")){
expression.next();
part = expression.peek();
+ inset = true;
}
while (part && this["<length>"](part) && count < 4) {
@@ -5962,9 +5964,14 @@ var Validation = {
if (part) {
if (this["<color>"](part)) {
expression.next();
+ part = expression.peek();
}
}
+ if (part && this.literal(part, "inset") && !inset){
+ expression.next();
+ }
+
result = (count >= 2 && count <= 4);
}
@@ -6162,7 +6169,7 @@ var CSSLint = (function(){
formatters = [],
api = new parserlib.util.EventTarget();
- api.version = "0.9.0";
+ api.version = "0.9.1";
//-------------------------------------------------------------------------
// Rule Management
View
6 release/npm/package.json
@@ -1,6 +1,6 @@
{
"name": "csslint",
- "version": "0.9.0",
+ "version": "0.9.1",
"description": "CSSLint",
"author": "Nicholas C. Zakas",
"os": ["darwin", "linux"],
@@ -19,8 +19,8 @@
},
"licenses":[
{
- "type" : "BSD",
- "url" : "http://www.freebsd.org/copyright/freebsd-license.html"
+ "type" : "MIT",
+ "url" : "https://github.com/stubbornella/csslint/blame/master/LICENSE"
}
],
"repository": {
Please sign in to comment.
Something went wrong with that request. Please try again.