aboutsummaryrefslogtreecommitdiffhomepage
path: root/org/default_regex.org
diff options
context:
space:
mode:
Diffstat (limited to 'org/default_regex.org')
-rw-r--r--org/default_regex.org9
1 files changed, 9 insertions, 0 deletions
diff --git a/org/default_regex.org b/org/default_regex.org
index 04abbad..e1f8d26 100644
--- a/org/default_regex.org
+++ b/org/default_regex.org
@@ -83,6 +83,15 @@ static comment = ctRegex!(`^%+ `);
static comments = ctRegex!(`^%+ |^%+$`);
#+END_SRC
+** config
+
+#+name: ao_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>.+?)['"])`);
+#+END_SRC
+
** native headers
*** native header :native:header: