Closed hartman closed 7 years ago
More specifically, long-form comments are being matched greedily rather than non-greedily. The patch shown in f53238468369afc652c0381bc53be81a32be78c2 seems to be the culprit in changing a .*?
to .*
.
That same commit seems to have broken the highlighting of multi-line strings, which appears to have been abusing COMMENT_REGEXP in the absence of STRING_REGEXP.
I have a tested fix, will open pull request in a bit.
@hartman Alignment issue and nothing points to the first index, only 2 and 3, intended?
edit: nvm, you fixed the alignment in a followup commit, but the first index isn't used.
@Streusel well, I mirrored how this was done for PHP. So 'COMMENT_SINGLE' => array(1 => "--") would be index 1.
I admit i didn't check if that is actually the correct or proper way to do it, but it seems to work for the php file.
This should be fixed with the merge of #63 and can be closed I believe.
We updated MediaWiki to the latest version of Geshi last week, but now all Multiline comment blocks in the Lua language no longer close.
Examples: