aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/doc_reform/io_out/rgx.d
diff options
context:
space:
mode:
authorRalph Amissah <ralph@amissah.com>2020-01-25 13:34:47 -0500
committerRalph Amissah <ralph@amissah.com>2020-02-26 09:59:18 -0500
commited71ef0ac032456c882bea44b04c02863cb90a46 (patch)
treeb6a27cbb13a31a2e3e436aa9d75d125aa586a2c5 /src/doc_reform/io_out/rgx.d
parentaddress compilation issues with dmd (v2.090.0) (diff)
code ctRegex calls, tidying
Diffstat (limited to 'src/doc_reform/io_out/rgx.d')
-rw-r--r--src/doc_reform/io_out/rgx.d5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/doc_reform/io_out/rgx.d b/src/doc_reform/io_out/rgx.d
index 4d0801c..32d457d 100644
--- a/src/doc_reform/io_out/rgx.d
+++ b/src/doc_reform/io_out/rgx.d
@@ -2,9 +2,8 @@
regex: regular expressions used in sisu document parser
+/
module doc_reform.io_out.rgx;
-static template spineOutputRgxInit() {
- import doc_reform.io_out.defaults;
- static struct Rgx {
+static template spineRgxOut() {
+ static struct RgxO {
static newline = ctRegex!("\n", "mg");
static space = ctRegex!(`[ ]`, "mg");
static spaces_keep = ctRegex!(`(?P<keep_spaces>^[ ]+|[ ]{2,})`, "mg"); // code, verse, block