regcomp.c: add missing code for optimizer for \W
authorKarl Williamson <public@khwilliamson.com>
Mon, 27 Dec 2010 18:02:59 +0000 (11:02 -0700)
committerKarl Williamson <public@khwilliamson.com>
Mon, 17 Jan 2011 02:13:23 +0000 (19:13 -0700)
commite9a9c1bc8f07e26bc67469d06565175d89c127fa
tree49f2d478d39c91c6e46b7461e9b003759acc4316
parent60f3bb230e7076deecc9e404bb3198a5fe3cc1e2
regcomp.c: add missing code for optimizer for \W

The code here was asymmetrical.  It did not account for Unicode
semantics when ORing \W.  For \w, \s, and \S it does.  This patch
changes the code to be symmetrical.

I spent a couple hours trying to come up with a test, but could not get
this area of the code to execute, which may explain why there has not
been a field report of it.  It may be that it is unreachable; there has
been other code in the routine that wasn't.
regcomp.c