Skip to content

Fix configuration comments without a trailing newline - #178

Open
krylosov-aa wants to merge 1 commit into
pgpool:masterfrom
krylosov-aa:66
Open

krylosov-aa wants to merge 1 commit into
pgpool:masterfrom
krylosov-aa:66

Conversation

@krylosov-aa

Copy link
Copy Markdown

A comment on the last line of pgpool.conf causes a syntax error if the file has no trailing newline. Change the comment rule from #.*$ to #.* so comments are accepted at EOF during startup and configuration reload, including in files loaded through include.

This matches PostgreSQL: its configuration lexer uses #.*

Fixes #66

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Parsing pgpool.conf fails when there is no newline at the end

1 participant