| Index: lib/src/prism/tests/languages/ruby/variable_feature.test
|
| diff --git a/lib/src/prism/tests/languages/ruby/variable_feature.test b/lib/src/prism/tests/languages/ruby/variable_feature.test
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..3b7b7c748668ca272ad11ac0f3b36c93eb073348
|
| --- /dev/null
|
| +++ b/lib/src/prism/tests/languages/ruby/variable_feature.test
|
| @@ -0,0 +1,27 @@
|
| +$_
|
| +$foo
|
| +$BAR?
|
| +$Baz_42!
|
| +
|
| +@_
|
| +@foo
|
| +@BAR?
|
| +@Baz_42!
|
| +
|
| +----------------------------------------------------
|
| +
|
| +[
|
| + ["variable", "$_"],
|
| + ["variable", "$foo"],
|
| + ["variable", "$BAR?"],
|
| + ["variable", "$Baz_42!"],
|
| +
|
| + ["variable", "@_"],
|
| + ["variable", "@foo"],
|
| + ["variable", "@BAR?"],
|
| + ["variable", "@Baz_42!"]
|
| +]
|
| +
|
| +----------------------------------------------------
|
| +
|
| +Checks for variables.
|
|
|