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