tokenize: support mode
Merge pull request #191 from naoa/tokenize-support-mode

tokenize: support mode

Patch by Naoya Murakami. Thanks!!!