prism/tests/languages/wren/function_feature.test

20 lines
308 B
Plaintext

foo()
foo {|x| x * 2}
----------------------------------------------------
[
["function", "foo"], ["punctuation", "("], ["punctuation", ")"],
["function", "foo"],
["punctuation", "{"],
["operator", "|"],
"x",
["operator", "|"],
" x ",
["operator", "*"],
["number", "2"],
["punctuation", "}"]
]