improve function regex

* funccccccccctiotitoi should not be valid
* add "if"
* catch local variables (l:)