Skip to content

Commit

Permalink
(?:\W|$)
Browse files Browse the repository at this point in the history
  • Loading branch information
douglascrockford committed Jul 11, 2012
1 parent 49284af commit 1e18982
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion jslint.js
Expand Up @@ -941,7 +941,7 @@ var JSLINT = (function () {
sx = /^\s*([{}:#%.=,>+\[\]@()"';]|[*$\^~]=|[a-zA-Z_][a-zA-Z0-9_\-]*|[0-9]+|<\/|\/\*)/,
ssx = /^\s*([@#!"'};:\-%.=,+\[\]()*_]|[a-zA-Z][a-zA-Z0-9._\-]*|\/\*?|\d+(?:\.\d+)?|<\/)/,
// comment todo
tox = /^\s*to\s*do/i,
tox = /^\s*to\s*do(?:\W|$)/i,
// 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]+)?)/,
// url badness
Expand Down

0 comments on commit 1e18982

Please sign in to comment.