Mercurial > hg > Applications > Grep
diff regexParser/node.cc @ 205:b7b8f0c03fe3
add test/ccMerge.cc
author | Masataka Kohagura <kohagura@cr.ie.u-ryukyu.ac.jp> |
---|---|
date | Sun, 27 Dec 2015 14:57:40 +0900 |
parents | 4fefd80c05f2 |
children | b0ae5273925c |
line wrap: on
line diff
--- a/regexParser/node.cc Sun Dec 27 13:21:18 2015 +0900 +++ b/regexParser/node.cc Sun Dec 27 14:57:40 2015 +0900 @@ -4,7 +4,7 @@ void printCharacterClass(CharClassPtr cc, long nodeNumber,int d) { if (!cc) return; - if (cc->type == 'a') { + if (cc->type == 'a' || cc->type == 'r') { if (cc->left) { printCharacterClass(cc->left,nodeNumber,d+1); }