support experimental lightweight function syntax

This commit is contained in:
William Ball 2024-12-11 18:21:59 -08:00
parent 113cca2caa
commit 0e1b742040
2 changed files with 11 additions and 1 deletions

View file

@ -13,7 +13,7 @@
(comment) @comment (comment) @comment
;(block_comment) @comment ;(block_comment) @comment
[ "(" ")" ] @punctuation.bracket [ "(" ")" "[" "]" ] @punctuation.bracket
(definition (definition
name: (identifier) @function) name: (identifier) @function)
@ -30,6 +30,12 @@
(param_block (param_block
type: (expr) @type) type: (expr) @type)
(labs_alt
type: (expr) @type)
(labs_alt
param: (identifier)+ @variable.parameter)
(variable_binding (variable_binding
type: (expr) @type) type: (expr) @type)

View file

@ -17,3 +17,7 @@
(variable_binding (variable_binding
"(" @delimiter "(" @delimiter
")" @delimiter @sentinel) @container ")" @delimiter @sentinel) @container
(labs_alt
"[" @delimiter
"]" @delimiter @sentinel) @container