improve matching a function definition
Merge pull request #1 from rhysd/improve/check_function_definition

Improved matching a function definition