How about support "long string" in config

Maxim Dounin mdounin at mdounin.ru
Fri Dec 7 17:01:14 UTC 2012


Hello!

On Fri, Dec 07, 2012 at 05:01:50PM +0800, kindy wrote:

> Hi,
> 
> Currently nginx support only string in double quote and single quote,
> how about add support for long string just like lua do (
> http://www.lua.org/manual/5.1/manual.html#2.1 ).
> then we can put everything we like in config file.
> 
> Also, we can support the long comment. and then we can comment block of
> configure temperately.
> 
> 
> Append the long string description here:
> 
> Strings can also be defined using a long format enclosed by *long brackets*.
> We define an *opening long bracket of level n* as an opening square bracket
> followed by *n* equal signs followed by another opening square bracket. So,
> an opening long bracket of level 0 is written as [[, an opening long
> bracket of level 1 is written as [=[, and so on. A *closing long bracket* is
> defined similarly; for instance, a closing long bracket of level 4 is
> written as ]====]. A long string starts with an opening long bracket of any
> level and ends at the first closing long bracket of the same level.
> Literals in this bracketed form can run for several lines, do not interpret
> any escape sequences, and ignore long brackets of any other level. They can
> contain anything except a closing bracket of the proper level.

I don't think we need it.

-- 
Maxim Dounin
http://nginx.com/support.html



More information about the nginx-devel mailing list