mirror of
https://git.postgresql.org/git/postgresql.git
synced 2025-01-18 18:44:06 +08:00
Fix config file lexer to not barf if postgresql.conf ends with a comment
that has no terminating newline. Per report from maps.on at gmx.net.
This commit is contained in:
parent
a646e4874a
commit
18e64f6c81
@ -4,7 +4,7 @@
|
||||
*
|
||||
* Copyright (c) 2000-2005, PostgreSQL Global Development Group
|
||||
*
|
||||
* $PostgreSQL: pgsql/src/backend/utils/misc/guc-file.l,v 1.29 2005/01/01 05:43:08 momjian Exp $
|
||||
* $PostgreSQL: pgsql/src/backend/utils/misc/guc-file.l,v 1.29.4.1 2005/07/08 18:41:55 tgl Exp $
|
||||
*/
|
||||
|
||||
%{
|
||||
@ -69,7 +69,7 @@ STRING \'([^'\n]|\\.)*\'
|
||||
|
||||
\n ConfigFileLineno++; return GUC_EOL;
|
||||
[ \t\r]+ /* eat whitespace */
|
||||
#.*$ /* eat comment */
|
||||
#.* /* eat comment (.* matches anything until newline) */
|
||||
|
||||
{ID} return GUC_ID;
|
||||
{QUALIFIED_ID} return GUC_QUALIFIED_ID;
|
||||
|
Loading…
Reference in New Issue
Block a user