From bb7c64a8245769f20742502cfa942f33ccb08af7 Mon Sep 17 00:00:00 2001 From: Martin Fischer Date: Tue, 29 Aug 2023 13:17:59 +0200 Subject: break!: add Token::EndOfFile While the end-of-file token can also be represented by None, this is less clear than having an explicit variant. Especially when it comes to tree construction, the spec explicitly has conditions named "An end-of-file token", and it's nice if the code for tree construction can match the spec text closely. --- integration_tests/tests/test_html5lib.rs | 1 + 1 file changed, 1 insertion(+) (limited to 'integration_tests') diff --git a/integration_tests/tests/test_html5lib.rs b/integration_tests/tests/test_html5lib.rs index bede29a..8fedc1a 100644 --- a/integration_tests/tests/test_html5lib.rs +++ b/integration_tests/tests/test_html5lib.rs @@ -152,6 +152,7 @@ fn run_test_inner( system_id: doctype.system_id, force_quirks: doctype.force_quirks, }), + Token::EndOfFile => {} }; } -- cgit v1.2.3