From 8d2633f62af1a37eb3ca2ae9415a8ed9a2bc7f6f Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Fri, 24 Oct 2014 19:25:54 -0700 Subject: Fixed regex for processing instruction. We now handle properly `'; ?>`. Closes #117. --- src/scanners.re | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/scanners.re') diff --git a/src/scanners.re b/src/scanners.re index 28aba9d..5ec1bf3 100644 --- a/src/scanners.re +++ b/src/scanners.re @@ -36,7 +36,7 @@ htmlcomment = "!--" ([^-\x00]+ | [-][^-\x00]+)* "-->"; - processinginstruction = "?" ([^?>\x00]+ | [?][^>\x00])* "?>"; + processinginstruction = "?" ([^?>\x00]+ | [?][^>\x00] | [>])* "?>"; declaration = "!" [A-Z]+ spacechar+ [^>\x00]* ">"; -- cgit v1.2.3