mirror of
https://github.com/tufanbarisyildirim/gonginx.git
synced 2026-04-27 00:35:51 +03:00
[GH-ISSUE #13] Painc casued by parsing config which contained lua block #5
Labels
No labels
bug
enhancement
good first issue
pull-request
question
v2
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/gonginx#5
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @caiwc on GitHub (Mar 18, 2023).
Original GitHub issue: https://github.com/tufanbarisyildirim/gonginx/issues/13
Part of my nginx config:
My code:
Full error:
I found out that this error is due to the fact that each line of the lua block does not need to end with a semicolon. But when
NewParserjudges the end of the block, it must end with a semicolon.What did you expect to see?
At least parse nginx config not painc.
I have two thoughts:
NewParserhandles lua modules specially, and supports no semicolon ending;@caiwc commented on GitHub (Mar 18, 2023):
It turns out that there are already PR #5 trying to fix this problem
@tufanbarisyildirim commented on GitHub (Mar 25, 2023):
I'm glad thats solved.