Permalink
Browse files

empty set

  • Loading branch information...
douglascrockford committed Oct 23, 2011
1 parent f9cd60e commit 2d24cf9eda4a5546f2724f4b907fe077eb631e3d
Showing with 7 additions and 4 deletions.
  1. +7 −4 jslint.js
View
@@ -1,5 +1,5 @@
// jslint.js
-// 2011-10-19
+// 2011-10-23
// Copyright (c) 2002 Douglas Crockford (www.JSLint.com)
@@ -1147,10 +1147,10 @@ var JSLINT = (function () {
// attributes characters
qx = /[^a-zA-Z0-9+\-_\/ ]/,
// style
- sx = /^\s*([{}:#%.=,>+\[\]@()"';]|\*=?|\$=|\|=|\^=|~=|[a-zA-Z_][a-zA-Z0-9_\-]*|[0-9]+|<\/|\/\*)/,
+ sx = /^\s*([{}:#%.=,>+\[\]@()"';]|[*$\^~]=|[a-zA-Z_][a-zA-Z0-9_\-]*|[0-9]+|<\/|\/\*)/,
ssx = /^\s*([@#!"'};:\-%.=,+\[\]()*_]|[a-zA-Z][a-zA-Z0-9._\-]*|\/\*?|\d+(?:\.\d+)?|<\/)/,
// token
- tx = /^\s*([(){}\[.,:;'"~\?\]#@]|={1,3}|\/(\*(jslint|properties|property|members?|globals?)?|=|\/)?|\*[\/=]?|\+(?:=|\++)?|-(?:=|-+)?|[\^%]=?|&[&=]?|\|[|=]?|>{1,3}=?|<(?:[\/=!]|\!(\[|--)?|<=?)?|\!={0,2}|[a-zA-Z_$][a-zA-Z0-9_$]*|[0-9]+(?:[xX][0-9a-fA-F]+|\.[0-9]*)?(?:[eE][+\-]?[0-9]+)?)/,
+ tx = /^\s*([(){}\[\]\?.,:;'"~#@`]|={1,3}|\/(\*(jslint|properties|property|members?|globals?)?|=|\/)?|\*[\/=]?|\+(?:=|\++)?|-(?:=|-+)?|[\^%]=?|&[&=]?|\|[|=]?|>{1,3}=?|<(?:[\/=!]|\!(\[|--)?|<=?)?|\!={0,2}|[a-zA-Z_$][a-zA-Z0-9_$]*|[0-9]+(?:[xX][0-9a-fA-F]+|\.[0-9]*)?(?:[eE][+\-]?[0-9]+)?)/,
// url badness
ux = /&|\+|\u00AD|\.\.|\/\*|%[^;]|base64|url|expression|data|mailto|script/i,
@@ -4209,6 +4209,9 @@ klass: do {
stop('expected_a_b', token, i, j || next_token.string);
}
do_function(set);
+ if (set.block.length === 0) {
+ warn('missing_a', token, 'throw');
+ }
p = set.first;
if (!p || p.length !== 1) {
stop('parameter_set_a', set, 'value');
@@ -6910,7 +6913,7 @@ klass: do {
};
itself.jslint = itself;
- itself.edition = '2011-10-19';
+ itself.edition = '2011-10-23';
return itself;

0 comments on commit 2d24cf9

Please sign in to comment.