-
-
Notifications
You must be signed in to change notification settings - Fork 358
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
syntax: make IsIncomplete more robust
It now works with Parser.Words reliably. It used to rely on counting the number of open statements, and there are none there. Moreover, the way it used the current quote state to check for missing closing tokens was flawed, as it did not work for closing double quotes or curly braces for parameter expansions. Fixes #937.
- Loading branch information
Showing
2 changed files
with
41 additions
and
22 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
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