patch 9.0.0502: a closure in a nested loop in a :def function does not work
Problem: A closure in a nested loop in a :def function does not work.
Solution: Use an array of loopvars, one per loop level.
diff --git a/src/errors.h b/src/errors.h
index 0882325..5ae55b3 100644
--- a/src/errors.h
+++ b/src/errors.h
@@ -3329,3 +3329,7 @@
EXTERN char e_cannot_use_length_endcol_and_endlnum_with_text[]
INIT(= N_("E1305: Cannot use \"length\", \"end_col\" and \"end_lnum\" with \"text\""));
#endif
+#ifdef FEAT_EVAL
+EXTERN char e_loop_nesting_too_deep[]
+ INIT(= N_("E1306: Loop nesting too deep"));
+#endif