Chapter 4 - Syntax and basic data types - 4.3.7 Strings
Go to the relevant page of the specification.
Parsing strings with escaped newlines
Strings with escaped newlines are treated as a single whole string.
Parsing of single quotes inside double quotes
Single quotes are allowed in strings that are double quoted.
Parsing of double quotes inside single quotes
Double quotes are allowed in strings that are single quoted.
Parsing of escaped quotes (single within single)
Single quotes cannot occur inside single quotes unless escaped.
Parsing of escaped double quotes
Double quotes cannot occur inside double quotes unless escaped.
Newlines in strings