ENDFUNC expected after FUNC

Since ENDFUNC serves to terminate a function definition (which is started by the FUNC keyword), it should appear after the function definition. Example:

func MyFunc
  default = sqr()

Add the ENDFUNC keyword to the end of the parameter definition to correct the error:

func MyFunc
  default = sqr()
endfunc

See Also
Errors