Support dot completion inside case branches - #237
Merged
Conversation
Toucan4Life
force-pushed
the
add_autocomplete_either_choice
branch
from
July 31, 2026 20:11
71d131d to
7a76f22
Compare
Collaborator
|
Nice, this looks good, thank you @Toucan4Life, merging! |
faiface
approved these changes
Aug 7, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add dot-autocomplete for
casebranch heads in Par completion.eitherbranch headsBefore, typing inside a branch head like this did not propose the valid branches:
Now it suggests:
chunk()end!choicebranch headsFor
begin case, branch-head completion now works here:and suggests:
closenextRecursive / named types
This also works when the branch set comes from a recursive or named type rather than from text already present in the current
caseblock.Example:
Now it suggests:
end!step()Anything that might be missing?
My next target is to work on the description of the autocomplete, and when the todo keyword is implemented, I would like that when choosing a suggestion from the autocomplete automatically insert some code snippet. Like for the branch that this PR worked on, instead of inserting only .step(), it would insert .step() => todo.
I would also like to work on the hover tooltip; I would like that when you hover a function or a reserved keyword of par, it show an hover of the usage of that function/keyword, like in rust.
Or do you want me to work on another things for my next PR?
Also congrats on the paper :D