-
Notifications
You must be signed in to change notification settings - Fork 73
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Language Server - parseVariable initializations (#27)
( from https://kolmafia.us/threads/ash-language-server-features.26098/post-163766 ) A bit more complex than the last few; this patch modifies parseVariable so that the signal indicating that we're parsing parameters is a boolean, rather than scope being null, and waits until the end to throw the error. This, again, will allow us to still keep trying to parse a parameter initialization, and will give us a full location once we throw the error. Also shuffles the parsing logic a little, for efficiency. * not supposed to touch that one either..? Why'd the test work anyway, then..? (context: d353d73) * way to pass the variable name (and location, in the future!)
- Loading branch information
Showing
1 changed file
with
54 additions
and
42 deletions.
There are no files selected for viewing
This file contains 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