mirror of
https://github.com/tufanbarisyildirim/gonginx.git
synced 2026-04-27 00:35:51 +03:00
[PR #66] [MERGED] fix: Unexpected token QuotedString#65 #65
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#65
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?
📋 Pull Request Information
Original PR: https://github.com/tufanbarisyildirim/gonginx/pull/66
Author: @mofantor
Created: 2/23/2025
Status: ✅ Merged
Merged: 2/25/2025
Merged by: @tufanbarisyildirim
Base:
master← Head:fix/#65Unexpected_token_QuotedString📝 Commits (2)
09ea035fix: QuotedString_ISSUE655937f69update comment📊 Changes
5 files changed (+117 additions, -83 deletions)
View changed files
📝
config/location.go(+2 -0)📝
config/statement.go(+9 -6)📝
dumper/dumper.go(+25 -11)📝
parser/parser.go(+58 -61)📝
parser/parser_test.go(+23 -5)📄 Description
Problem Analysis:
Comments can appear on any line, including within multi-line directives. The parser must correctly handle inline comments that appear within multi-line configurations.
Fix:
Modified the
InLineCommentstructure and logic to ensure that all functionalities of inline comments are properly handled. Specifically, this includes tracking the line numbers of inline comments so that they can be accurately output during configuration formatting.This fix addresses the issue where the parser was failing to handle quoted strings followed by inline comments in multi-line directives, as described in issue #65.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.