Permalink
Browse files

(?:\W|$)

  • Loading branch information...
1 parent 49284af commit 1e189822fbf75ef62b632aa5d9f2b5c7535647aa @douglascrockford committed Jul 11, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 jslint.js
View
@@ -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

0 comments on commit 1e18982

Please sign in to comment.