-
Notifications
You must be signed in to change notification settings - Fork 101
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Lua block comment totally broken #32
Comments
Suspects are: @reedy i think we need to ping Marius :) |
More specifically, long-form comments are being matched greedily rather than non-greedily. The patch shown in f532384 seems to be the culprit in changing a |
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. |
- Match comments non-greedily instead of greedily - Re-add support for block strings (similar to heredoc) Wikipedia issue: https://bugzilla.wikimedia.org/show_bug.cgi?id=73281 Wikipedia review: https://gerrit.wikimedia.org/r/173104 This fixues issue GeSHi#32
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:
The text was updated successfully, but these errors were encountered: