-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(parser): simplify substitution processing (#910)
simplify logic to process substitutions on elements also: - rename `AttributeSubstitution` to `AttributeReference` in grammar rules and in type in `pkg/types` - use single `string` for `Location.Path` when there's no attribute reference instead of `[]interface{}{*types.StringElement{Content:...}}` - wrap roles and options attribute values in `types.Roles` and `types.Options` respectivily (hence avoid matching `[]interface{}`) - change logic to handle `\n` at the end of paragraph lines - remove outdated grammar rules Signed-off-by: Xavier Coulon <[email protected]>
- Loading branch information
Showing
82 changed files
with
30,495 additions
and
56,219 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
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.