-
Notifications
You must be signed in to change notification settings - Fork 211
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix double-nesting of
Note
constructors
Fixes #1784 In #1824 I introduced a bug in computing source spans for `Note` constructors. The (very indirect) consequence of this bug was that doubly-nested `Note` constructors would show up in the syntax tree. For example, the following command would generate *far* more `Note` constructors than you would expect before this fix: ```bash $ dhall haskell-syntax-tree --noted <<< 'A B' ``` Among other things, that broke the LSP server, which assumes that `Note` constructors are only nested once. I added a regression test to prevent this from recurring in the future.
- Loading branch information
1 parent
9122a7e
commit f42d17d
Showing
2 changed files
with
38 additions
and
17 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