Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

C:/Program Files (x86)/Git/*properties*/

  • Loading branch information...
commit 4ceff52390474a1d5595e26c35332ef4334bf80a 1 parent 68f3eda
@douglascrockford authored
Showing with 105 additions and 119 deletions.
  1. +105 −119 jslint.js
View
224 jslint.js
@@ -204,24 +204,22 @@
/*properties
'\b', '\t', '\n', '\f', '\r', '!=', '!==', '"', '%', '\'', '(arguments)',
'(begin)', '(breakage)', '(context)', '(error)', '(identifier)', '(line)',
- '(loopage)', '(name)', '(params)', '(scope)', '(token)', '(vars)',
- '(verb)', '*', '+', '-', '/', '<', '<=', '==', '===', '>',
- '>=', ADSAFE, Array, Date, E, Function, LN10, LN2, LOG10E, LOG2E,
- MAX_VALUE, MIN_VALUE, NEGATIVE_INFINITY, Object, PI, POSITIVE_INFINITY,
- SQRT1_2, SQRT2, '\\', a, a_label, a_not_allowed, a_not_defined, a_scope,
- abbr, acronym, address, adsafe, adsafe_a, adsafe_autocomplete,
- adsafe_bad_id, adsafe_div, adsafe_fragment, adsafe_go, adsafe_html,
- adsafe_id, adsafe_id_go, adsafe_lib, adsafe_lib_second, adsafe_missing_id,
- adsafe_name_a, adsafe_placement, adsafe_prefix_a, adsafe_script,
- adsafe_source, adsafe_subscript_a, adsafe_tag, all, already_defined, and,
- anon, applet, apply, approved, area, arity, article, aside, assign,
- assign_exception, assignment_function_expression, at, attribute_case_a,
- audio, autocomplete, avoid_a, b, background, 'background-attachment',
- 'background-color', 'background-image', 'background-position',
- 'background-repeat', bad_assignment, bad_color_a, bad_constructor,
- bad_entity, bad_html, bad_id_a, bad_in_a, bad_invocation, bad_name_a,
- bad_new, bad_number, bad_operand, bad_style, bad_type, bad_url_a, bad_wrap,
- base, bdo, big, bind, bitwise, block, blockquote, body, border,
+ '(loopage)', '(name)', '(params)', '(scope)', '(token)', '(vars)', '(verb)',
+ '*', '+', '-', '/', '<', '<=', '==', '===', '>', '>=', ADSAFE,
+ Array, Date, Function, Object, '\\', a, a_label, a_not_allowed,
+ a_not_defined, a_scope, abbr, acronym, address, adsafe, adsafe_a,
+ adsafe_autocomplete, adsafe_bad_id, adsafe_div, adsafe_fragment, adsafe_go,
+ adsafe_html, adsafe_id, adsafe_id_go, adsafe_lib, adsafe_lib_second,
+ adsafe_missing_id, adsafe_name_a, adsafe_placement, adsafe_prefix_a,
+ adsafe_script, adsafe_source, adsafe_subscript_a, adsafe_tag, all,
+ already_defined, and, anon, applet, apply, approved, area, arity, article,
+ aside, assign, assign_exception, assignment_function_expression, at,
+ attribute_case_a, audio, autocomplete, avoid_a, b, background,
+ 'background-attachment', 'background-color', 'background-image',
+ 'background-position', 'background-repeat', bad_assignment, bad_color_a,
+ bad_constructor, bad_entity, bad_html, bad_id_a, bad_in_a, bad_invocation,
+ bad_name_a, bad_new, bad_number, bad_operand, bad_style, bad_type, bad_url_a,
+ bad_wrap, base, bdo, big, bitwise, block, blockquote, body, border,
'border-bottom', 'border-bottom-color', 'border-bottom-left-radius',
'border-bottom-right-radius', 'border-bottom-style', 'border-bottom-width',
'border-collapse', 'border-color', 'border-left', 'border-left-color',
@@ -229,87 +227,71 @@
'border-right-color', 'border-right-style', 'border-right-width',
'border-spacing', 'border-style', 'border-top', 'border-top-color',
'border-top-left-radius', 'border-top-right-radius', 'border-top-style',
- 'border-top-width', 'border-width', bottom, br, braille, browser, button,
- c, call, canvas, cap, caption, 'caption-side', ceil, center, charAt,
- charCodeAt, character, cite, clear, clip, closure, cm, code, col, colgroup,
- color, combine_var, command, concat, conditional_assignment, confusing_a,
- confusing_regexp, constructor, constructor_name_a, content, continue,
- control_a, 'counter-increment', 'counter-reset', create, css, cursor, d,
- dangerous_comment, dangling_a, data, datalist, dd, debug, defineProperties,
- defineProperty, del, deleted, details, devel, dfn, dialog, dir, direction,
- display, disrupt, div, dl, dt, duplicate_a, edge, edition, else, em, embed,
- embossed, empty, 'empty-cells', empty_block, empty_case, empty_class,
- entityify, eqeq, errors, es5, eval, every, evidence, evil, ex, exception,
- exec, expected_a, expected_a_at_b_c, expected_a_b, expected_a_b_from_c_d,
- expected_at_a, expected_attribute_a, expected_attribute_value_a,
- expected_class_a, expected_fraction_a, expected_id_a,
- expected_identifier_a, expected_identifier_a_reserved, expected_lang_a,
- expected_linear_a, expected_media_a, expected_name_a,
- expected_nonstandard_style_attribute, expected_number_a,
- expected_operator_a, expected_percent_a, expected_positive_a,
- expected_pseudo_a, expected_selector_a, expected_small_a,
- expected_space_a_b, expected_string_a, expected_style_attribute,
- expected_style_pattern, expected_tagname_a, expected_type_a, f, fieldset,
- figure, filter, first, flag, float, floor, font, 'font-family',
- 'font-size', 'font-size-adjust', 'font-stretch', 'font-style',
- 'font-variant', 'font-weight', footer, for, forEach, for_if, forin, form,
- fragment, frame, frameset, freeze, from, fromCharCode, fud, funct,
- function, function_block, function_eval, function_loop, function_statement,
- function_strict, functions, getDate, getDay, getFullYear, getHours,
- getMilliseconds, getMinutes, getMonth, getOwnPropertyDescriptor,
- getOwnPropertyNames, getPrototypeOf, getSeconds, getTime,
- getTimezoneOffset, getUTCDate, getUTCDay, getUTCFullYear, getUTCHours,
- getUTCMilliseconds, getUTCMinutes, getUTCMonth, getUTCSeconds, getYear,
- global, globals, h1, h2, h3, h4, h5, h6, handheld, hasOwnProperty, head,
- header, height, hgroup, hr, 'hta:application', html, html_confusion_a,
- html_handlers, i, id, identifier, identifier_function, iframe, img, immed,
- implied_evil, in, indent, indexOf, infix_in, init, input, ins, insecure_a,
- isAlpha, isArray, isDigit, isExtensible, isFrozen, isNaN, isPrototypeOf,
- isSealed, join, jslint, json, kbd, keygen, keys, label, label_a_b, labeled,
- lang, lastIndex, lastIndexOf, lbp, leading_decimal_a, led, left, legend,
- length, 'letter-spacing', li, lib, line, 'line-height', link, 'list-style',
- 'list-style-image', 'list-style-position', 'list-style-type', map, margin,
- 'margin-bottom', 'margin-left', 'margin-right', 'margin-top', mark,
- 'marker-offset', match, 'max-height', 'max-width', maxerr, maxlen, member,
- menu, message, meta, meter, 'min-height', 'min-width', missing_a,
- missing_a_after_b, missing_option, missing_property, missing_space_a_b,
- missing_url, missing_use_strict, mixed, mm, mode, move_invocation,
- move_var, n, name, name_function, nav, nested_comment, newcap, node,
- noframes, nomen, noscript, not, not_a_constructor, not_a_defined,
- not_a_function, not_a_label, not_a_scope, not_greater, now, nud, number,
- object, octal_a, ol, on, opacity, open, optgroup, option, outer, outline,
- 'outline-color', 'outline-style', 'outline-width', output, overflow,
- 'overflow-x', 'overflow-y', p, padding, 'padding-bottom', 'padding-left',
- 'padding-right', 'padding-top', 'page-break-after', 'page-break-before',
- param, parameter_a_get_b, parameter_arguments_a, parameter_set_a, params,
- paren, parent, parse, passfail, pc, plusplus, pop, position, postscript,
- pre, predef, preventExtensions, print, progress, projection, properties,
- propertyIsEnumerable, prototype, pt, push, px, q, quote, quotes, r, radix,
- range, raw, read_only, reason, redefinition_a, reduce, reduceRight, regexp,
- replace, report, reserved, reserved_a, reverse, rhino, right, rp, rt, ruby,
- safe, samp, scanned_a_b, screen, script, seal, search, second, section,
- select, setDate, setDay, setFullYear, setHours, setMilliseconds,
- setMinutes, setMonth, setSeconds, setTime, setTimezoneOffset, setUTCDate,
- setUTCDay, setUTCFullYear, setUTCHours, setUTCMilliseconds, setUTCMinutes,
- setUTCMonth, setUTCSeconds, setYear, shift, slash_equal, slice, sloppy,
- small, some, sort, source, span, speech, splice, split, src,
- statement_block, stopping, strange_loop, strict, string, stringify, strong,
- style, styleproperty, sub, subscript, substr, substring, sup, supplant, t,
- table, 'table-layout', tag_a_in_b, tbody, td, test, 'text-align',
- 'text-decoration', 'text-indent', 'text-shadow', 'text-transform',
- textarea, tfoot, th, thead, third, thru, time, title, toDateString,
- toExponential, toFixed, toISOString, toJSON, toLocaleDateString,
- toLocaleLowerCase, toLocaleString, toLocaleTimeString, toLocaleUpperCase,
- toLowerCase, toPrecision, toString, toTimeString, toUTCString, toUpperCase,
- token, too_long, too_many, top, tr, trailing_decimal_a, tree, trim, tt,
- tty, tv, type, u, ul, unclosed, unclosed_comment, unclosed_regexp, undef,
- undefined, unescaped_a, unexpected_a, unexpected_char_a_b,
- unexpected_comment, unexpected_property_a, unexpected_space_a_b,
- 'unicode-bidi', unnecessary_initialize, unnecessary_use, unparam,
- unreachable_a_b, unrecognized_style_attribute_a, unrecognized_tag_a,
- unsafe, unshift, unused, url, urls, use_array, use_braces, use_charAt,
- use_object, use_or, use_param, used_before_a, valueOf, var, var_a_not,
- vars, 'vertical-align', video, visibility, warn, was, weird_assignment,
+ 'border-top-width', 'border-width', bottom, br, braille, browser, button, c,
+ call, canvas, cap, caption, 'caption-side', center, charAt, charCodeAt,
+ character, cite, clear, clip, closure, cm, code, col, colgroup, color,
+ combine_var, command, conditional_assignment, confusing_a, confusing_regexp,
+ constructor_name_a, content, continue, control_a, 'counter-increment',
+ 'counter-reset', create, css, cursor, d, dangerous_comment, dangling_a, data,
+ datalist, dd, debug, del, deleted, details, devel, dfn, dialog, dir,
+ direction, display, disrupt, div, dl, dt, duplicate_a, edge, edition, else,
+ em, embed, embossed, empty, 'empty-cells', empty_block, empty_case,
+ empty_class, entityify, eqeq, errors, es5, eval, evidence, evil, ex,
+ exception, exec, expected_a, expected_a_at_b_c, expected_a_b,
+ expected_a_b_from_c_d, expected_at_a, expected_attribute_a,
+ expected_attribute_value_a, expected_class_a, expected_fraction_a,
+ expected_id_a, expected_identifier_a, expected_identifier_a_reserved,
+ expected_lang_a, expected_linear_a, expected_media_a, expected_name_a,
+ expected_nonstandard_style_attribute, expected_number_a, expected_operator_a,
+ expected_percent_a, expected_positive_a, expected_pseudo_a,
+ expected_selector_a, expected_small_a, expected_space_a_b, expected_string_a,
+ expected_style_attribute, expected_style_pattern, expected_tagname_a,
+ expected_type_a, f, fieldset, figure, filter, first, flag, float, floor,
+ font, 'font-family', 'font-size', 'font-size-adjust', 'font-stretch',
+ 'font-style', 'font-variant', 'font-weight', footer, forEach, for_if, forin,
+ form, fragment, frame, frameset, from, fromCharCode, fud, funct, function,
+ function_block, function_eval, function_loop, function_statement,
+ function_strict, functions, global, globals, h1, h2, h3, h4, h5, h6,
+ handheld, hasOwnProperty, head, header, height, hgroup, hr,
+ 'hta:application', html, html_confusion_a, html_handlers, i, id, identifier,
+ identifier_function, iframe, img, immed, implied_evil, in, indent, indexOf,
+ infix_in, init, input, ins, insecure_a, isAlpha, isArray, isDigit, isNaN,
+ join, jslint, json, kbd, keygen, keys, label, label_a_b, labeled, lang, lbp,
+ leading_decimal_a, led, left, legend, length, 'letter-spacing', li, lib,
+ line, 'line-height', link, 'list-style', 'list-style-image',
+ 'list-style-position', 'list-style-type', map, margin, 'margin-bottom',
+ 'margin-left', 'margin-right', 'margin-top', mark, 'marker-offset', match,
+ 'max-height', 'max-width', maxerr, maxlen, member, menu, message, meta,
+ meter, 'min-height', 'min-width', missing_a, missing_a_after_b,
+ missing_option, missing_property, missing_space_a_b, missing_url,
+ missing_use_strict, mixed, mm, mode, move_invocation, move_var, n, name,
+ name_function, nav, nested_comment, newcap, node, noframes, nomen, noscript,
+ not, not_a_constructor, not_a_defined, not_a_function, not_a_label,
+ not_a_scope, not_greater, nud, number, object, octal_a, ol, on, opacity,
+ open, optgroup, option, outer, outline, 'outline-color', 'outline-style',
+ 'outline-width', output, overflow, 'overflow-x', 'overflow-y', p, padding,
+ 'padding-bottom', 'padding-left', 'padding-right', 'padding-top',
+ 'page-break-after', 'page-break-before', param, parameter_a_get_b,
+ parameter_arguments_a, parameter_set_a, params, paren, parent, passfail, pc,
+ plusplus, pop, position, postscript, pre, predef, print, progress,
+ projection, properties, prototype, pt, push, px, q, quote, quotes, r, radix,
+ range, raw, read_only, reason, redefinition_a, regexp, replace, report,
+ reserved, reserved_a, rhino, right, rp, rt, ruby, safe, samp, scanned_a_b,
+ screen, script, search, second, section, select, shift, slash_equal, slice,
+ sloppy, small, sort, source, span, speech, split, src, statement_block,
+ stopping, strange_loop, strict, string, strong, style, styleproperty, sub,
+ subscript, substr, sup, supplant, t, table, 'table-layout', tag_a_in_b,
+ tbody, td, test, 'text-align', 'text-decoration', 'text-indent',
+ 'text-shadow', 'text-transform', textarea, tfoot, th, thead, third, thru,
+ time, title, toLowerCase, toString, toUpperCase, token, too_long, too_many,
+ top, tr, trailing_decimal_a, tree, tt, tty, tv, type, u, ul, unclosed,
+ unclosed_comment, unclosed_regexp, undef, undefined, unescaped_a,
+ unexpected_a, unexpected_char_a_b, unexpected_comment, unexpected_property_a,
+ unexpected_space_a_b, 'unicode-bidi', unnecessary_initialize,
+ unnecessary_use, unparam, unreachable_a_b, unrecognized_style_attribute_a,
+ unrecognized_tag_a, unsafe, unused, url, urls, use_array, use_braces,
+ use_charAt, use_object, use_or, use_param, used_before_a, var, var_a_not,
+ vars, 'vertical-align', video, visibility, was, weird_assignment,
weird_condition, weird_new, weird_program, weird_relation, weird_ternary,
white, 'white-space', widget, width, windows, 'word-spacing', 'word-wrap',
wrap, wrap_immediate, wrap_regexp, write_is_wrong, writeable, 'z-index'
@@ -6256,8 +6238,8 @@ klass: do {
itself.report = function (errors_only) {
var data = itself.data(), err, evidence, i, italics, j, key, keys,
- length, mem = '', name, names, output = [], snippets, the_function,
- warning;
+ length, mem = '', name, names, not_first, output = [], snippets,
+ the_function, warning;
function detail(h, value) {
var comma_needed, singularity;
@@ -6370,27 +6352,31 @@ klass: do {
mem = ' ';
italics = 0;
j = 0;
+ not_first = false;
for (i = 0; i < keys.length; i += 1) {
key = keys[i];
- name = ix.test(key)
- ? key
- : '\'' + key.entityify().replace(nx, sanitize) + '\'';
- length += name.length + 2;
- if (data.member[key] === 1) {
- name = '<i>' + name + '</i>';
- italics += 1;
- j = 1;
- }
- if (i < keys.length - 1) {
- name += ', ';
- }
- if (mem.length + name.length - (italics * 7) > 80) {
- output.push(mem + '<br>');
- mem = ' ';
- italics = j;
+ if (data.member[key] > 0) {
+ if (not_first) {
+ mem += ', ';
+ }
+ name = ix.test(key)
+ ? key
+ : '\'' + key.entityify().replace(nx, sanitize) + '\'';
+ length += name.length + 2;
+ if (data.member[key] === 1) {
+ name = '<i>' + name + '</i>';
+ italics += 1;
+ j = 1;
+ }
+ if (mem.length + name.length - (italics * 7) > 80) {
+ output.push(mem + '<br>');
+ mem = ' ';
+ italics = j;
+ }
+ mem += name;
+ j = 0;
+ not_first = true;
}
- mem += name;
- j = 0;
}
output.push(mem + '<br>*/</pre>');
}
Please sign in to comment.
Something went wrong with that request. Please try again.