aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/sdp/output_rgx.d
diff options
context:
space:
mode:
Diffstat (limited to 'src/sdp/output_rgx.d')
-rw-r--r--src/sdp/output_rgx.d25
1 files changed, 25 insertions, 0 deletions
diff --git a/src/sdp/output_rgx.d b/src/sdp/output_rgx.d
index 5a9a47e..e056b70 100644
--- a/src/sdp/output_rgx.d
+++ b/src/sdp/output_rgx.d
@@ -4,6 +4,10 @@
template SiSUoutputRgxInit() {
private import defaults;
struct Rgx {
+ static newline = ctRegex!("\n", "mg");
+ static space = ctRegex!(`[ ]`, "mg");
+ static two_spaces = ctRegex!(`[ ]{2}`, "mg");
+ static nbsp_char = ctRegex!(`░`, "mg");
static src_pth = ctRegex!(`^(?P<path>[a-zA-Z0-9._-]+/)*(?P<filename>[a-zA-Z0-9._-]+[.]ss[tm])$`);
static src_fn =
ctRegex!(`^([a-zA-Z0-9._-]+/)*(?P<fn_src>(?P<fn_base>[a-zA-Z0-9._-]+)[.](?P<fn_src_suffix>ss[tm]))$`);
@@ -33,5 +37,26 @@ template SiSUoutputRgxInit() {
static inline_link_fn_suffix = ctRegex!(`¤(.+?)(\.fnSuffix)`, "mg");
static inline_seg_link = ctRegex!(`(¤)(?:.+?)\.fnSuffix`, "mg");
static mark_internal_site_lnk = ctRegex!(`¤`, "mg");
+ /+ inline markup font face mod +/
+ static inline_faces = ctRegex!(`(?P<markup>(?P<mod>[*!_^,+#-])\{(?P<text>.+?)\}[*!_^,+#-])`, "mg");
+ static inline_emphasis = ctRegex!(`\*\{(?P<text>.+?)\}\*`, "mg");
+ static inline_bold = ctRegex!(`!\{(?P<text>.+?)\}!`, "mg");
+ static inline_underscore = ctRegex!(`_\{(?P<text>.+?)\}_`, "mg");
+ static inline_italics = ctRegex!(`/\{(?P<text>.+?)\}/`, "mg");
+ static inline_superscript = ctRegex!(`\^\{(?P<text>.+?)\}\^`, "mg");
+ static inline_subscript = ctRegex!(`,\{(?P<text>.+?)\},`, "mg");
+ static inline_strike = ctRegex!(`-\{(?P<text>.+?)\}-`, "mg");
+ static inline_insert = ctRegex!(`\+\{(?P<text>.+?)\}\+`, "mg");
+ static inline_mono = ctRegex!(`#\{(?P<text>.+?)\}#`, "mg");
+ static inline_cite = ctRegex!(`"\{(?P<text>.+?)\}"`, "mg");
+ static inline_faces_line = ctRegex!(`^[*!/_]_ (?P<text>.+?)((?: [\\]{2}|[~]#){0,2}$)`);
+ static inline_emphasis_line = ctRegex!(`^\*_ (?P<text>.+?)((?: [\\]{2}|[~]#){0,2}$)`);
+ static inline_bold_line = ctRegex!(`^!_ (?P<text>.+?)((?: [\\]{2}|[~]#){0,2}$)`);
+ static inline_italics_line = ctRegex!(`^/_ (?P<text>.+?)((?: [\\]{2}|[~]#){0,2}$)`);
+ static inline_underscore_line = ctRegex!(`^__ (?P<text>.+?)((?: [\\]{2}|[~]#){0,2}$)`);
+ static xhtml_ampersand = ctRegex!(`[&]`); // &amp;
+ static xhtml_less_than = ctRegex!(`[<]`); // &lt;
+ static xhtml_greater_than = ctRegex!(`[>]`); // &gt;
+ static xhtml_line_break = ctRegex!(` [\\]{2}`); // <br />
}
}