summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2014-10-24 19:25:54 -0700
committerJohn MacFarlane <jgm@berkeley.edu>2014-10-24 19:25:54 -0700
commit8d2633f62af1a37eb3ca2ae9415a8ed9a2bc7f6f (patch)
tree361edd53b85a66cbde6fcff13864eecc454b097e
parent2453227890fc744f9abcc87c472f0ce98de9e450 (diff)
Fixed regex for processing instruction.
We now handle properly `<?php echo '>'; ?>`. Closes #117.
-rw-r--r--src/scanners.re2
1 files changed, 1 insertions, 1 deletions
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]* ">";