support experimental lightweight function syntax
This commit is contained in:
parent
113cca2caa
commit
0e1b742040
2 changed files with 11 additions and 1 deletions
|
|
@ -13,7 +13,7 @@
|
|||
(comment) @comment
|
||||
;(block_comment) @comment
|
||||
|
||||
[ "(" ")" ] @punctuation.bracket
|
||||
[ "(" ")" "[" "]" ] @punctuation.bracket
|
||||
|
||||
(definition
|
||||
name: (identifier) @function)
|
||||
|
|
@ -30,6 +30,12 @@
|
|||
(param_block
|
||||
type: (expr) @type)
|
||||
|
||||
(labs_alt
|
||||
type: (expr) @type)
|
||||
|
||||
(labs_alt
|
||||
param: (identifier)+ @variable.parameter)
|
||||
|
||||
(variable_binding
|
||||
type: (expr) @type)
|
||||
|
||||
|
|
|
|||
|
|
@ -17,3 +17,7 @@
|
|||
(variable_binding
|
||||
"(" @delimiter
|
||||
")" @delimiter @sentinel) @container
|
||||
|
||||
(labs_alt
|
||||
"[" @delimiter
|
||||
"]" @delimiter @sentinel) @container
|
||||
|
|
|
|||
Loading…
Reference in a new issue