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
|
(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)
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -17,3 +17,7 @@
|
||||||
(variable_binding
|
(variable_binding
|
||||||
"(" @delimiter
|
"(" @delimiter
|
||||||
")" @delimiter @sentinel) @container
|
")" @delimiter @sentinel) @container
|
||||||
|
|
||||||
|
(labs_alt
|
||||||
|
"[" @delimiter
|
||||||
|
"]" @delimiter @sentinel) @container
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue