Skip to content

Commit

Permalink
/=
Browse files Browse the repository at this point in the history
  • Loading branch information
douglascrockford committed Jun 23, 2015
1 parent 7dc3644 commit 97efd16
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions jslint.js
@@ -1,5 +1,5 @@
// jslint.js
// 2015-06-18
// 2015-06-22
// Copyright (c) 2015 Douglas Crockford (www.JSLint.com)

// Permission is hereby granted, free of charge, to any person obtaining a copy
Expand Down Expand Up @@ -382,7 +382,7 @@ var jslint = (function JSLint() {
rx_directive = /^(jslint|property|global)\s*(.*)$/,
rx_directive_part = /^([a-zA-Z$_][a-zA-Z0-9$_]*)\s*(?::\s*(true|false|[0-9]+)\s*)?(?:,\s*)?(.*)$/,
// token (sorry it is so long)
rx_token = /^((\s+)|([a-zA-Z_$][a-zA-Z0-9_$]*)|[(){}\[\]\?,:;'"~`]|=(?:==?|>)?|\.+|\/[*\/]?|\*[\/=]?|\+(?:=|\++)?|-(?:=|-+)?|[\^%]=?|&[&=]?|\|[\|=]?|>{1,3}=?|<<?=?|!={0,2}|(0|[1-9][0-9]*))(.*)$/,
rx_token = /^((\s+)|([a-zA-Z_$][a-zA-Z0-9_$]*)|[(){}\[\]\?,:;'"~`]|=(?:==?|>)?|\.+|\/[=*\/]?|\*[\/=]?|\+(?:=|\++)?|-(?:=|-+)?|[\^%]=?|&[&=]?|\|[\|=]?|>{1,3}=?|<<?=?|!={0,2}|(0|[1-9][0-9]*))(.*)$/,
rx_digits = /^([0-9]+)(.*)$/,
rx_hexs = /^([0-9a-fA-F]+)(.*)$/,
rx_octals = /^([0-7]+)(.*)$/,
Expand Down Expand Up @@ -2467,6 +2467,9 @@ var jslint = (function JSLint() {
advance(']');
return the_token;
});
prefix('/=', function () {
stop('expected_a_b', token, '/\\=', '/=');
});
prefix('=>', function () {
return stop('expected_a_before_b', token, '()', '=>');
});
Expand Down Expand Up @@ -4401,7 +4404,7 @@ var jslint = (function JSLint() {
}
}
return {
edition: "2015-06-18",
edition: "2015-06-22",
functions: functions,
global: global,
id: "(JSLint)",
Expand Down

0 comments on commit 97efd16

Please sign in to comment.