diff options
| author | orbitalquark <70453897+orbitalquark@users.noreply.github.com> | 2024-09-12 21:52:09 -0400 |
|---|---|---|
| committer | Randy Palamar <randy@rnpnr.xyz> | 2025-01-04 12:20:21 -0700 |
| commit | 603bc09d0f6235379f9026b25a5f78bf490a6704 (patch) | |
| tree | 58b819bdfe41dd5f950018d7b30758dfcd5e8c30 /lua/lexers/powershell.lua | |
| parent | c51b9e952d4565dcca259baaf30dd035a1ae9c11 (diff) | |
| download | vis-603bc09d0f6235379f9026b25a5f78bf490a6704.tar.gz vis-603bc09d0f6235379f9026b25a5f78bf490a6704.tar.xz | |
Increase the default LPeg stack size
It is not clear how large this value should be. It appears to be a function of grammar complexity.
For example, a problematic HTML file requires a value of 1329 to work, but removing either the
'attribute' rule or an embedded lexer reduces the limit.
However, identifying which files trigger a stack overflow is not trivial. It does not appear to
depend on file size. For example, the problematic HTML file is 125K, but a non-problematic HTML
file of 500K works.
Diffstat (limited to 'lua/lexers/powershell.lua')
0 files changed, 0 insertions, 0 deletions
