refs #120 fix flaw of grammar, added a test case
Merge pull request #121 from liyuankui/ticket-120

refs #120 fix flaw of grammar, added a test case