aboutsummaryrefslogtreecommitdiffhomepage
path: root/org/default_regex.org
diff options
context:
space:
mode:
authorRalph Amissah <ralph@amissah.com>2017-07-27 04:38:26 -0400
committerRalph Amissah <ralph@amissah.com>2019-04-10 15:14:14 -0400
commitd56624bce222d870298d937e634fe01aef5c39e4 (patch)
treefda4da44a0fdddda9e99202ad69ebce9193c55ba /org/default_regex.org
parentmeta_abstraction, mark some functions pure (diff)
static, liberal use of keyword
Diffstat (limited to 'org/default_regex.org')
-rw-r--r--org/default_regex.org12
1 files changed, 6 insertions, 6 deletions
diff --git a/org/default_regex.org b/org/default_regex.org
index 95167b4..f255bb6 100644
--- a/org/default_regex.org
+++ b/org/default_regex.org
@@ -30,9 +30,9 @@ http://dlang.org/phobos/std_regex.html
regex: regular expressions used in sisu document parser
+/
module sdp.meta.rgx;
-template SiSUrgxInit() {
+static template SiSUrgxInit() {
import sdp.meta.defaults;
- struct Rgx {
+ static struct Rgx {
<<meta_rgx>>
<<prgmkup_rgx>>
}
@@ -88,8 +88,8 @@ static comments = ctRegex!(`^%+ |^%+$`);
#+name: meta_rgx
#+BEGIN_SRC d
/+ header +/
-static make_simple_substitutions_rb = ctRegex!(`(?P<substitution>/(?P<match>.+?)/,[ ]*['"](?P<replace>.+?)['"])`);
-static make_simple_substitutions_d = ctRegex!(`(?P<substitution>``(?P<match>.+?)``,[ ]*['"](?P<replace>.+?)['"])`);
+static make_simple_substitutions_rb = ctRegex!(`(?P<substitution>/(?P<match>.+?)/,[ ]*['"](?P<replace>.+?)['"])`);
+static make_simple_substitutions_d = ctRegex!(`(?P<substitution>``(?P<match>.+?)``,[ ]*['"](?P<replace>.+?)['"])`);
#+END_SRC
** native headers
@@ -369,9 +369,9 @@ http://dlang.org/phobos/std_regex.html
regex: regular expressions used in sisu document parser
+/
module sdp.output.rgx;
-template SiSUoutputRgxInit() {
+static template SiSUoutputRgxInit() {
import sdp.output.defaults;
- struct Rgx {
+ static struct Rgx {
<<prgmkup_rgx>>
<<sp_ch_xhtml_rgx>>
}