Hash :
5d7223c9
Author :
Date :
2018-03-03T21:39:51
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55
<<<FOO_BAR
Heredoc string
FOO_BAR;
<<<"FOO"
some
content
FOO;
<<<'NOWDOC'
This is a nowdoc string
NOWDOC;
"https://example.com"
" /* not a comment */ "
"multi-line
string"
'multi-line
string'
----------------------------------------------------
[
["heredoc-string", [
["delimiter", [
["punctuation", "<<<"], "FOO_BAR"
]],
"\r\nHeredoc string\r\n",
["delimiter", [
"FOO_BAR", ["punctuation", ";"]
]]
]],
["heredoc-string", [
["delimiter", [
["punctuation", "<<<\""], "FOO", ["punctuation", "\""]
]],
"\r\n\tsome\r\n\tcontent\r\n",
["delimiter", [
"FOO", ["punctuation", ";"]
]]
]],
["nowdoc-string", [
["delimiter", [
["punctuation", "<<<'"], "NOWDOC", ["punctuation", "'"]
]],
"\r\nThis is a nowdoc string\r\n",
["delimiter", [
"NOWDOC", ["punctuation", ";"]
]]
]],
["double-quoted-string", ["\"https://example.com\""]],
["double-quoted-string", ["\" /* not a comment */ \""]],
["double-quoted-string", ["\"multi-line\r\nstring\""]],
["single-quoted-string", "'multi-line\r\nstring'"]
]
----------------------------------------------------
Checks for strings.