Docs: Clarify that strings can be either single or double quoted.

Fixes #3710
This commit is contained in:
Magnus Bäck 2015-08-09 22:17:48 +02:00 committed by Jordan Sissel
parent 605d3faf08
commit 1d75bf47fa

View file

@ -218,13 +218,18 @@ Example:
[float]
==== String
A string must be a single character sequence. Note that string values are enclosed in quotes.
A string must be a single character sequence. Note that string values are
enclosed in quotes, either double or single. Literal quotes in the string
need to be escaped with a backslash if they are of the same kind as the string
delimiter, i.e. single quotes within a single-quoted string need to be escaped
as well as double quotes within a double-quoted string.
Example:
[source,js]
----------------------------------
name => "Hello world"
name => 'It\'s a beautiful day'
----------------------------------
[float]