[PR #6] [MERGED] avoid panic if comment is found in statements #34

Closed
opened 2026-02-28 01:20:38 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/tufanbarisyildirim/gonginx/pull/6
Author: @virusdefender
Created: 8/17/2021
Status: Merged
Merged: 8/17/2021
Merged by: @tufanbarisyildirim

Base: masterHead: fix-comment-in-statement


📝 Commits (1)

  • 01b730f avoid panic if comment is found in statements

📊 Changes

2 files changed (+18 additions, -0 deletions)

View changed files

📝 parser/parser.go (+8 -0)
📝 parser/parser_test.go (+10 -0)

📄 Description

panic: unexpected token Comment (#comment) on line 3, column 1

if ($a ~* "")#comment
#comment
{#comment
return 400;
}

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/tufanbarisyildirim/gonginx/pull/6 **Author:** [@virusdefender](https://github.com/virusdefender) **Created:** 8/17/2021 **Status:** ✅ Merged **Merged:** 8/17/2021 **Merged by:** [@tufanbarisyildirim](https://github.com/tufanbarisyildirim) **Base:** `master` ← **Head:** `fix-comment-in-statement` --- ### 📝 Commits (1) - [`01b730f`](https://github.com/tufanbarisyildirim/gonginx/commit/01b730f810dbea0b99da560812aa87e70884af1c) avoid panic if comment is found in statements ### 📊 Changes **2 files changed** (+18 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `parser/parser.go` (+8 -0) 📝 `parser/parser_test.go` (+10 -0) </details> ### 📄 Description `panic: unexpected token Comment (#comment) on line 3, column 1` ``` if ($a ~* "")#comment #comment {#comment return 400; } ``` --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-02-28 01:20:38 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/gonginx#34
No description provided.