Nesting of FUNC is not allowed

The FUNC keyword may not be nested. Example:

default:
  func MyFunc
    func YourFunc

Put all function definitions after each other to correct this. Example:

default:
  func MyFunc
  endfunc
  func YourFunc
  endfunc

See Also
Errors