Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ensure parser is deterministic #67

Open
wants to merge 1 commit into
base: 1.21.4
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Ensure parser is deterministic
  • Loading branch information
DrexHD committed Jan 28, 2025
commit 15082c3e04fa22c74aa511e850a6df4fac4fc10a
Original file line number Diff line number Diff line change
@@ -16,7 +16,7 @@
* Allows you to create stacked parser in most "correct" and compatible way.
*/
public class ParserBuilder {
private final Map<TagLikeParser.Format, TagLikeParser.Provider> tagLike = new HashMap<>();
private final Map<TagLikeParser.Format, TagLikeParser.Provider> tagLike = new LinkedHashMap<>();
private final List<NodeParser> parserList = new ArrayList<>();
private final List<Formatting> legacyFormatting = new ArrayList<>();
private boolean hasLegacy = false;