-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(parser)!: switch to
hcl-edit
for parsing HCL (#267)
BREAKING CHANGES: The parser will now return an error if it encounters a duplicate attribute in a HCL body. Furthermore, the `Message` variant of the `Error` type was changed from `Message { msg: String, location: Option<Location> }` to `Message(String)` and the `Location` type was removed from the `error` module. Use the `location()` method of the error wrapped by the new `Error::Parse` variant to get access to the location where the parser failed. The old `pest` parser was replaced by the `winnow`-based parser that is used by `hcl-edit`. There's only one HCL parser implementation that needs to be maintained now. The `hcl-edit` parser is more correct and also over 100% faster than the old `pest`-based implementation. As a nice side effect, this decreases the number of transitive dependencies for the `hcl-rs` crate as well.
- Loading branch information
1 parent
4f6600e
commit c6d0588
Showing
17 changed files
with
31 additions
and
1,372 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,7 +5,6 @@ | |
|
||
mod conditional; | ||
pub(crate) mod de; | ||
#[cfg(feature = "edit")] | ||
mod edit; | ||
mod for_expr; | ||
mod func_call; | ||
|
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
Oops, something went wrong.