Skip to content

Commit 133c2b2

Browse files
committed
lexer: Add support for calling function methods via @func_method()
1 parent 9991cad commit 133c2b2

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

fusion/core/lexer.lua

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,8 @@ local pattern = re.compile([[
196196
(ws 'else' ws {:else: rstatement :})?
197197
|}
198198
199-
function_call <- {| {:type: '' -> 'function_call' :} (
199+
function_call <- {| {:type: '' -> 'function_call' :}
200+
((& '@') {:is_method: '' -> true :})? (
200201
(variable / literal) ({:has_self: ':' {name / r} :} ws
201202
{:index_class: ws '<' ws {expression} ws '>' :}? )?
202203
) ws '(' ws function_call_body? ws ')'

0 commit comments

Comments
 (0)