updated to support let
This commit is contained in:
parent
52fa5a5f5e
commit
2645b608e8
4 changed files with 9 additions and 12 deletions
|
|
@ -3,4 +3,5 @@
|
||||||
(block_comment)
|
(block_comment)
|
||||||
(labs)
|
(labs)
|
||||||
(pabs)
|
(pabs)
|
||||||
|
(binding)
|
||||||
] @fold
|
] @fold
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
[ "fun" "λ" "forall" "∏" ] @keyword
|
[ "fun" "λ" "forall" "∏" "let" "in" "end" ] @keyword
|
||||||
(axiom) @keyword
|
(axiom) @keyword
|
||||||
|
|
||||||
(preprocess
|
(preprocess
|
||||||
|
|
@ -17,6 +17,9 @@
|
||||||
(definition
|
(definition
|
||||||
name: (identifier) @function)
|
name: (identifier) @function)
|
||||||
|
|
||||||
|
(binding
|
||||||
|
(identifier) @function)
|
||||||
|
|
||||||
(param_block
|
(param_block
|
||||||
param: (identifier)+ @variable.parameter)
|
param: (identifier)+ @variable.parameter)
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,11 +0,0 @@
|
||||||
(definition) @local.scope
|
|
||||||
(definition
|
|
||||||
name: (identifier) @local.definition)
|
|
||||||
(labs) @local.scope
|
|
||||||
(pabs) @local.scope
|
|
||||||
|
|
||||||
(param_block
|
|
||||||
param: (identifier)+ @local.definition)
|
|
||||||
|
|
||||||
(term
|
|
||||||
(identifier) @local.reference)
|
|
||||||
|
|
@ -5,3 +5,7 @@
|
||||||
(term
|
(term
|
||||||
"(" @delimiter
|
"(" @delimiter
|
||||||
")" @delimiter @sentinel) @container
|
")" @delimiter @sentinel) @container
|
||||||
|
|
||||||
|
(binding
|
||||||
|
"(" @delimiter
|
||||||
|
")" @delimiter @sentinel) @container
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue