difftastic/vendored_parsers/tree-sitter-hack/test/cases/literals/heredoc-variable.hack

33 lines
279 B
Plaintext

// This test ensures that variables within heredocs are interpreted as such.
// ÿ is 255 in unicode which is a valid variable identifier.
<<<EOF
r$var
EOF;
<<<EOT
$ÿ
EOT;
<<<EOF
E$var
EOF;
<<<EOF
$var
EOF;
<<<EOF
$var
EOF;
<<<EOF
$var
abc
EOF;
<<<EOF
$var x $var
EOF;