Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 32ab4c8

Browse files
author
nadeko
committed
travis autodeploy 8e0e02b12b289687d7f43b2b81fb57c408c999dc...7d079d094f4f256806552d0a06c67d915ee00d07
1 parent eb77982 commit 32ab4c8

File tree

1 file changed

+17
-9
lines changed

1 file changed

+17
-9
lines changed

‎manual/master/index.html

Lines changed: 17 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -9779,8 +9779,8 @@ <h2>input.conf syntax</h2>
97799779
<p><tt class="docutils literal">&lt;section&gt;</tt> (braced with <tt class="docutils literal">{</tt> and <tt class="docutils literal">}</tt>) is the input section for this
97809780
command.</p>
97819781
<p><tt class="docutils literal">&lt;command&gt;</tt> is the command itself. It consists of the command name and
9782-
multiple (or none) commands, all separated by whitespace. String arguments
9783-
need to be quotedwith <tt class="docutils literal">&quot;</tt>. Details see <tt class="docutils literal">Flat command syntax</tt>.</p>
9782+
multiple (or none) arguments, all separated by whitespace. String arguments
9783+
should be quoted, typically with <tt class="docutils literal">&quot;</tt>. See <tt class="docutils literal">Flat command syntax</tt>.</p>
97849784
<p>You can bind multiple commands to one key. For example:</p>
97859785
<div class="line-block">
97869786
<div class="line">a show-text &quot;command 1&quot; ; show-text &quot;command 2&quot;</div>
@@ -9860,16 +9860,24 @@ <h2>Flat command syntax</h2>
98609860
<div class="line-block">
98619861
<div class="line"><br /></div>
98629862
<div class="line"><tt class="docutils literal">&lt;command&gt;&nbsp; ::= [&lt;prefixes&gt;] &lt;command_name&gt; <span class="pre">(&lt;argument&gt;)*</span></tt></div>
9863-
<div class="line"><tt class="docutils literal">&lt;argument&gt; ::= (&lt;string&gt; | &quot; &lt;quoted_string&gt; &quot;)</tt></div>
9863+
<div class="line"><tt class="docutils literal">&lt;argument&gt; ::= (&lt;unquoted&gt; | &quot; &lt;double_quoted&gt; &quot; | !X &lt;custom_quoted&gt; X!)</tt></div>
98649864
</div>
98659865
<p><tt class="docutils literal">command_name</tt> is an unquoted string with the command name itself. See
98669866
<a class="reference internal" href="#list-of-input-commands">List of Input Commands</a> for a list.</p>
9867-
<p>Arguments are separated by whitespace. This applies even to string arguments.
9868-
For this reason, string arguments should be quoted with <tt class="docutils literal">&quot;</tt>. If a string
9869-
argument contains spaces or certain special characters, quoting and possibly
9870-
escaping is mandatory, or the command cannot be parsed correctly.</p>
9871-
<p>Inside quotes, C-style escaping can be used. JSON escapes according to RFC 8259,
9872-
minus surrogate pair escapes, should be a safe subset that can be used.</p>
9867+
<p>Arguments are separated by whitespaces even if the command expects only one
9868+
argument. Arguments with whitespaces or other special characters must be quoted,
9869+
or the command cannot be parsed correctly.</p>
9870+
<p>Double quoted arguments start and end with <tt class="docutils literal">&quot;</tt>. Custom quotes start with <tt class="docutils literal">!</tt>
9871+
(exclamation mark) followed by any ASCII character, and end in the same pair in
9872+
reverse order, e.g. <tt class="docutils literal">!'foo'!</tt> or <tt class="docutils literal"><span class="pre">!-bar-!</span></tt>. The final pair sequence is not
9873+
allowed inside the string - in these examples <tt class="docutils literal">'!</tt> and <tt class="docutils literal"><span class="pre">-!</span></tt> respectively.</p>
9874+
<p>Custom quotes take their content literally, while inside double quotes
9875+
JSON/C-style escaping can be used. JSON escapes according to RFC 8259, minus
9876+
surrogate pair escapes, should be a safe subset that can be used.</p>
9877+
<p>Note that argument parsing and property expansion happen at different stages.
9878+
First, arguments are determined as described above, and then, where applicable,
9879+
properties are expanded - regardless of argument quoting. However, expansion
9880+
can still be prevented with <tt class="docutils literal">$&gt;</tt>. See <a class="reference internal" href="#property-expansion">Property Expansion</a>.</p>
98739881
</div>
98749882
<div class="section" id="commands-specified-as-arrays">
98759883
<h2>Commands specified as arrays</h2>

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /