meta-end-defun-regexp

meta-end-defun-regexp is a variable defined in `meta-mode.el'.
Its value is
"\\(end\\(char\\|def\\|fig\\)\\)"


Documentation:
Regexp matching the end of defuns in Metafont or MetaPost mode.

You can customize this variable.