Previously, melody-parser would go into an endless loop when encountering a declaration like <!DOCTYPE html>. This PR fixes that by introducing a new Declaration node type. By default, these nodes are not added to the AST. They are only added if the new Parser option ignoreDeclarations is set to false.
Previously,
melody-parser
would go into an endless loop when encountering a declaration like<!DOCTYPE html>
. This PR fixes that by introducing a newDeclaration
node type. By default, these nodes are not added to the AST. They are only added if the new Parser optionignoreDeclarations
is set tofalse
.