- Commit
- 8d2633f62af1a37eb3ca2ae9415a8ed9a2bc7f6f
- Parent
- 2453227890fc744f9abcc87c472f0ce98de9e450
- Author
- John MacFarlane <jgm@berkeley.edu>
- Date
Fixed regex for processing instruction.
We now handle properly `<?php echo '>'; ?>`.
Closes #117.
My personal build of CMark ✏️
Fixed regex for processing instruction.
We now handle properly `<?php echo '>'; ?>`.
Closes #117.
1 file changed, 1 insertion, 1 deletion
Status | File Name | N° Changes | Insertions | Deletions |
Modified | src/scanners.re | 2 | 1 | 1 |
diff --git 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]* ">";