Skip to content

Commit ceeca30

Browse files
committed
docs: clarify Lua nesting limit (180 guard vs ~200 parser cap)
1 parent eb1f810 commit ceeca30

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

.github/copilot-instructions.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,8 @@ which collapses `Array Unit` to an empty table.
251251
**Lua 5.1 limits** to keep in mind:
252252
- Max ~200 local variables per function
253253
- Max ~60 upvalues per closure
254-
- Parser nesting depth limit ~200 levels (`NestingTooDeep` error)
254+
- Parser nesting depth limit ~200 levels in Lua; `pslua` rejects
255+
conservatively at depth 180 with the `NestingTooDeep` error
255256

256257
---
257258

0 commit comments

Comments
 (0)