meta-end-environment-regexp

meta-end-environment-regexp is a variable defined in `meta-mode.el'.
Its value is

"\\(end\\(char\\|def\\|f\\(ig\\|or\\)\\|gr\\(aph\\|oup\\)\\)\\|fi\\)"


Documentation:
Regexp matching the end of environments to be indented.

You can customize this variable.