diff --git a/spec/examples/argument b/spec/examples/argument index bee51852..aee4d702 100644 --- a/spec/examples/argument +++ b/spec/examples/argument @@ -48,4 +48,9 @@ component Main { test() } } - +------------------------------------------------------------------------------- +component Main { + fun render : String { + (value: String) { value }("") + } +} diff --git a/src/parsers/base_expression.cr b/src/parsers/base_expression.cr index 60f5130c..9742a853 100644 --- a/src/parsers/base_expression.cr +++ b/src/parsers/base_expression.cr @@ -10,7 +10,8 @@ module Mint left = case char when '(' - parenthesized_expression || inline_function + # TODO: Remove `oneof` when `:` deprecation ends. + oneof { parenthesized_expression || inline_function } when '-', .ascii_number? state_setter || number_literal || unary_minus when '!'