-
-
Notifications
You must be signed in to change notification settings - Fork 353
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
cmd/shfmt: report correct language read from EditorConfig in errors
We had logic to catch mismatching language errors and report what language was currently being used for parsing, following the -ln flag. However, this logic completely ignored EditorConfig, which can also control this behavior via the shell_variant property. The logic to determine what language to use for parsing was correct, but the logic to report a reasonable error to the user was not. Fixes #1102.
- Loading branch information
Showing
2 changed files
with
11 additions
and
7 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