regexp: Implement class shorthand escapes in brackets
commit2d2f74ebfeeb056130a37fec19189766a85cec81
authorSteve Bennett <steveb@workware.net.au>
Fri, 22 Dec 2017 02:57:03 +0000 (22 12:57 +1000)
committerSteve Bennett <steveb@workware.net.au>
Sun, 31 Dec 2017 01:45:53 +0000 (31 11:45 +1000)
tree9f070ca7d6641b4d7fb8e3ec6ea423d2db5062d5
parentdde3b217dacb724ea4b6f86a8f7095d73e80674f
regexp: Implement class shorthand escapes in brackets

The following class shorthand escapes now match Tcl when
used within bracket expressions:

\d        [[:digit:]]
\s        [[:space:]]
\w        [[:alnum:]_] (note underscore)

e.g. [a-f\d] => [a-f0-9]

Previously these shorthand escapes were only implemented outside bracket expressions.

Signed-off-by: Steve Bennett <steveb@workware.net.au>
jimregexp.c
tests/regcount.test