summaryrefslogtreecommitdiffstats
path: root/plugins/55/wrap/syntax/spanwrap.php
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/55/wrap/syntax/spanwrap.php')
-rw-r--r--plugins/55/wrap/syntax/spanwrap.php19
1 files changed, 19 insertions, 0 deletions
diff --git a/plugins/55/wrap/syntax/spanwrap.php b/plugins/55/wrap/syntax/spanwrap.php
new file mode 100644
index 0000000..054d299
--- /dev/null
+++ b/plugins/55/wrap/syntax/spanwrap.php
@@ -0,0 +1,19 @@
+<?php
+/**
+ * Alternate span syntax component for the wrap plugin
+ *
+ * Defines <wrap> ... </wrap> syntax
+ *
+ * @license GPL 2 (http://www.gnu.org/licenses/gpl.html)
+ * @author Anika Henke <anika@selfthinker.org>
+ */
+
+class syntax_plugin_wrap_spanwrap extends syntax_plugin_wrap_span {
+
+ protected $special_pattern = '<wrap\b[^>\r\n]*?/>';
+ protected $entry_pattern = '<wrap\b.*?>(?=.*?</wrap>)';
+ protected $exit_pattern = '</wrap>';
+
+
+}
+