Hi,<div><br></div><div>Currently nginx support only string in double quote and single quote,</div><div>how about add support for long string just like lua do ( <a href="http://www.lua.org/manual/5.1/manual.html#2.1">http://www.lua.org/manual/5.1/manual.html#2.1</a> ).</div>
<div>then we can put everything we like in config file.<br></div><div><br></div><div>Also, we can support the long comment. and then we can comment block of configure temperately.</div><div><br></div><div><br></div><div>Append the long string description here:</div>
<div><br></div><div><span style="color:rgb(0,0,0);font-family:Helvetica,Arial,sans-serif;font-size:medium;text-align:justify">Strings can also be defined using a long format enclosed by </span><em style="color:rgb(0,0,0);font-family:Helvetica,Arial,sans-serif;font-size:medium;text-align:justify">long brackets</em><span style="color:rgb(0,0,0);font-family:Helvetica,Arial,sans-serif;font-size:medium;text-align:justify">. We define an </span><em style="color:rgb(0,0,0);font-family:Helvetica,Arial,sans-serif;font-size:medium;text-align:justify">opening long bracket of level <em>n</em></em><span style="color:rgb(0,0,0);font-family:Helvetica,Arial,sans-serif;font-size:medium;text-align:justify"> as an opening square bracket followed by </span><em style="color:rgb(0,0,0);font-family:Helvetica,Arial,sans-serif;font-size:medium;text-align:justify">n</em><span style="color:rgb(0,0,0);font-family:Helvetica,Arial,sans-serif;font-size:medium;text-align:justify"> equal signs followed by another opening square bracket. So, an opening long bracket of level 0 is written as </span><code style="font-size:medium;color:rgb(0,0,0);text-align:justify">[[</code><span style="color:rgb(0,0,0);font-family:Helvetica,Arial,sans-serif;font-size:medium;text-align:justify">, an opening long bracket of level 1 is written as </span><code style="font-size:medium;color:rgb(0,0,0);text-align:justify">[=[</code><span style="color:rgb(0,0,0);font-family:Helvetica,Arial,sans-serif;font-size:medium;text-align:justify">, and so on. A </span><em style="color:rgb(0,0,0);font-family:Helvetica,Arial,sans-serif;font-size:medium;text-align:justify">closing long bracket</em><span style="color:rgb(0,0,0);font-family:Helvetica,Arial,sans-serif;font-size:medium;text-align:justify"> is defined similarly; for instance, a closing long bracket of level 4 is written as </span><code style="font-size:medium;color:rgb(0,0,0);text-align:justify">]====]</code><span style="color:rgb(0,0,0);font-family:Helvetica,Arial,sans-serif;font-size:medium;text-align:justify">. 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.</span><br clear="all">
<div><br></div><div><br></div>-- <br>- - - - - - - - - - - -<br>林青(Kindy Lin)<br><br>
</div>