updated to support let

This commit is contained in:
William Ball 2024-11-23 10:43:03 -08:00
parent 52fa5a5f5e
commit 2645b608e8
4 changed files with 9 additions and 12 deletions

View file

@ -3,4 +3,5 @@
(block_comment)
(labs)
(pabs)
(binding)
] @fold

View file

@ -1,4 +1,4 @@
[ "fun" "λ" "forall" "∏" ] @keyword
[ "fun" "λ" "forall" "∏" "let" "in" "end" ] @keyword
(axiom) @keyword
(preprocess
@ -17,6 +17,9 @@
(definition
name: (identifier) @function)
(binding
(identifier) @function)
(param_block
param: (identifier)+ @variable.parameter)

View file

@ -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)

View file

@ -5,3 +5,7 @@
(term
"(" @delimiter
")" @delimiter @sentinel) @container
(binding
"(" @delimiter
")" @delimiter @sentinel) @container