[dist] update .editorconfig

Add settings for *.h.
(cherry picked from commit 9ef179604683c04410e7f65249a992b653f7eae6)
[bug] fix problem with optimization of \z (Issue #16)

"こんにちは" =~ /\n?\z/ didn't match.

see:
  http://bugs.ruby-lang.org/issues/8210
  http://stackoverflow.com/a/15885857/925913
(cherry picked from commit 096e7cdc294a0f71bb5f0ed7e71bf9092b55d43c)