Files
enscript/enscript-1.6.4-perl_parens.patch
OBS User autobuild 1ee239d4ea Accepting request 39754 from Publishing
Copy from Publishing/enscript based on submit request 39754 from user WernerFink

OBS-URL: https://build.opensuse.org/request/show/39754
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/enscript?expand=0&rev=15
2010-05-12 16:23:31 +00:00

43 lines
847 B
Diff
Raw Permalink Blame History

This file contains invisible Unicode characters
This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
--- states/hl/perl.st
+++ states/hl/perl.st 2010-03-31 00:00:00.000000000 +0000
@@ -4,6 +4,7 @@
*
* Author: Jim Villani, Logistics Management Institute (jvillani@lmi.org)
* perl_pod mods by Gregor Purdy (gregor@focusresearch.com)
+ * perl_parens by Josh Zenker (josh.zenker@sig.com)
*/
state perl_pod extends Highlight
@@ -58,6 +59,18 @@ state perl_bquot_string extends Highligh
}
}
+state perl_parens extends Highlight
+{
+ /\\\\./ {
+ language_print ($0);
+ }
+ /\)/ {
+ language_print ($0);
+ return;
+ }
+}
+
+
state perl extends HighlightEntry
{
/* Comments. */
@@ -186,6 +199,12 @@ state perl extends HighlightEntry
language_print ($0);
call (perl_pod);
}
+
+ /* parentheses */
+ /\(/ {
+ language_print ($0);
+ call (perl_parens);
+ }
}