Welcome! Log In Create A New Profile

Advanced

Re: [PATCH] Contrib: vim syntax, listen option and SSL/Mail protocol keywords

Maxim Dounin
February 21, 2017 01:14PM
Hello!

On Tue, Feb 21, 2017 at 11:31:41PM +0800, OOO wrote:

> Yes, have simple way to fix.
>
> One question before commit.
> Does string in nginx conf supports multiline?
> Or only single line string is valid?

Configuration directives can span multiple lines. LF and CR can
appear anywhere where whitespaces are allowed. Only comments are
single-line, starting from "#" and to the end of the string (from
"#" to LF).

Parsing code is available here:

http://hg.nginx.org/nginx/file/tip/src/core/ngx_conf_file.c#l502

A formal description of grammar used can be found in OpenBSD
manual pages at http://man.openbsd.org/OpenBSD-5.5/nginx.conf.5.
It looks mostly correct as far as I can tell, but doesn't describe
all nuances - in particular, it doesn't seem to tell anything
about quoted strings. Refer to the code if in doubt.

--
Maxim Dounin
http://nginx.org/
_______________________________________________
nginx-devel mailing list
nginx-devel@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx-devel
Subject Author Views Posted

[PATCH] Contrib: vim syntax, listen option and SSL/Mail protocol keywords

othree 349 February 20, 2017 10:12PM

Re: [PATCH] Contrib: vim syntax, listen option and SSL/Mail protocol keywords

Maxim Dounin 149 February 21, 2017 09:06AM

Re: [PATCH] Contrib: vim syntax, listen option and SSL/Mail protocol keywords

OOO 157 February 21, 2017 10:34AM

Re: [PATCH] Contrib: vim syntax, listen option and SSL/Mail protocol keywords

Maxim Dounin 177 February 21, 2017 01:14PM



Sorry, you do not have permission to post/reply in this forum.

Online Users

Guests: 283
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready