Add. Single `if` `then` patterns.
Fix. Single `end` pattern may end with `;` and `)`.
Add. Some tests.