-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix handling of comments in import groups (#11)
I noticed #10 introduced a regression in that a comments sitting on a separate line are now ignored - leading to the `importInfo` "value" being set to an empty string. This trips things up further along as empty string implies a separate group. I've tried to address this by retaining "value" as the raw value (renamed to `lineValue` for clarity), and adding a new field to `importInfo` which contains the import path, if valid for the given line.
- Loading branch information
1 parent
e6ef3b0
commit 3cdbde3
Showing
2 changed files
with
60 additions
and
19 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