Ignore IntelliJ files
Fix tab-space mixing
Don't fail on empty input

Fixes #5.
Fix extra `}` after empty rules

Fixes #22.
Add tests for newly closed issues

Adds tests for #5, #21, #22.