-
Notifications
You must be signed in to change notification settings - Fork 196
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
👌 IMPROVE: Directive option parsing (#796)
Previously, directive options blocks have been parsed using a "full" YAML parser. This is unnecessary, and problematic since only a mapping of **string** key to **string** value is required, not any of the other YAML constructs; sequences, flow style, anchors, aliases, tags, ..., It required addition handling of non-string values (failing or converting back to strings), and could also cause confusion when values were not parsed as strings. This commit, introduces a new "restricted" YAML parser (adapted from pyyaml), which will maintain back-compatibilty with existing options blocks, but will only parse mappings of string keys to string values (including multi-line strings and comment parsing). Parsing errors are also improved, by reporting the exact line on which the error occured.
- Loading branch information
1 parent
1f61fa0
commit e4dddb3
Showing
14 changed files
with
1,078 additions
and
83 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -133,3 +133,5 @@ _archive/ | |
|
||
.vscode/ | ||
.DS_Store | ||
|
||
docs/apidocs |
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
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.