You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Perl syntax highlighting in google-code-prettify has 2 problems:
1) POD (Plain Old Documentation) and __END__ are not recognized at all. POD is
everything between =something and =end; everything after __END__ is also not
parsed, so should be treated as a comment.
Example of incorrect highlighting using current prettify:
http://vmx.yourcmc.ru/var/tmp/Field.htm
Just trying to add a rule for POD doesn't work because of
shortcutStylePatterns.push([PR_PLAIN, /^\s+/, null, ' \r\n\t\xA0']);
So I've commented this line in the patch. I think it's anyway useless.
3) And after fixing POD, there is still a problem with quotes in comments -
prettify treats a quote inside comment as a beginning of string! Example:
http://vmx.yourcmc.ru/var/tmp/Field_pod.htm
(see incorrect highlighting in SQL_DEFINITIONS)
This is fixed by adding # as a character in the definition of punctuation...
Example with both problems fixed:
http://vmx.yourcmc.ru/var/tmp/Field_fixed.htm
Patch is attached.
Original issue reported on code.google.com by [email protected] on 28 Oct 2014 at 2:01
Original issue reported on code.google.com by
[email protected]
on 28 Oct 2014 at 2:01Attachments:
The text was updated successfully, but these errors were encountered: