mirror of
https://github.com/helix-editor/helix
synced 2026-11-22 02:34:25 +01:00
Ports @dead10ck's YAML/Go/C test cases into the new caret format, covers more languages
22 lines
291 B
PHP
22 lines
291 B
PHP
<?php
|
|
|
|
function classify($value)
|
|
{
|
|
if ($a) {}
|
|
// ^ 4
|
|
switch ($value) {
|
|
case 1:
|
|
return "one";
|
|
case 2:
|
|
echo "two";
|
|
return "";
|
|
default:
|
|
return "other";
|
|
}
|
|
}
|
|
|
|
$doc = <<<EOT
|
|
unindented
|
|
indented
|
|
EOT;
|