From 85f6cb8e769fa9bb4e90dcf93c02b061401f1ad1 Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Sat, 17 Jul 2021 15:25:24 -0700 Subject: Performance optimization for common case where pattern starts with string --- grammars/html.bp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'grammars/html.bp') diff --git a/grammars/html.bp b/grammars/html.bp index 457a183..29e4566 100644 --- a/grammars/html.bp +++ b/grammars/html.bp @@ -14,9 +14,9 @@ void-element: `< ("area"/"base"/"br"/"col"/"embed"/"hr"/"img"/"input"/"link"/"me template-element: "" -raw-element: `< @tag=("script"/"style"/"textarea"/"title") __attributes__ `> ..%\n (") +raw-element: `< @tag=("script"/"style"/"textarea"/"title") __attributes__ `> ..%\n " -normal-element: `< @tag=id __attributes__ `> ..%(\n / comment / element) (") +normal-element: `< @tag=id __attributes__ `> ..%(\n / comment / element) " comment: "" -- cgit v1.2.3