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.org44
1 files changed, 40 insertions, 4 deletions
diff --git a/org/default_regex.org b/org/default_regex.org
index b0a47ca..9ea040e 100644
--- a/org/default_regex.org
+++ b/org/default_regex.org
@@ -45,7 +45,8 @@ static template spineRgxIn() {
<<meta_rgx_comments>>
<<meta_rgx_config>>
<<meta_rgx_headers>>
- <<meta_rgx_heading_and_paragraph_marks>>
+ <<meta_rgx_heading_marks>>
+ <<meta_rgx_paragraph_marks>>
<<meta_rgx_blocks>>
<<meta_rgx_block_tic>>
<<meta_rgx_block_curly>>
@@ -144,11 +145,11 @@ static yaml_header_meta_title = ctRegex!(`^\s*title\s*:\
static yaml_config = ctRegex!(`^[a-z]+\s*:\s*(?:"?\w|$)`, "m");
#+END_SRC
-** heading & paragraph operators :paragraph:operator:
+** heading operators :heading:operator:
-#+NAME: meta_rgx_heading_and_paragraph_marks
+#+NAME: meta_rgx_heading_marks
#+BEGIN_SRC d
-/+ heading & paragraph operators +/
+/+ heading operators +/
static heading_a = ctRegex!(`^:?[A][~] `, "m");
static heading = ctRegex!(`^:?([A-D1-4])[~]([a-z0-9_.-]*[?]?)\s+`,"i");
static headings = ctRegex!(`^:?(?P<level>[A-D1-4])[~](?:[a-z0-9_.-]*[?]?|[!](?:glossary|bibliogrphy|biblio|references?|blurb))(?:\s|$)`,"i");
@@ -164,6 +165,13 @@ static heading_marker_tag_has_colon = ctRegex!(`([:])`);
static heading_biblio = ctRegex!(`^1[~][!](biblio(?:graphy)?|references?)`);
static heading_glossary = ctRegex!(`^1[~][!](glossary)`);
static heading_blurb = ctRegex!(`^1[~][!](blurb)`);
+#+END_SRC
+
+** paragraph operators :paragraph:operator:
+
+#+NAME: meta_rgx_paragraph_marks
+#+BEGIN_SRC d
+/+ paragraph operators +/
static para_bullet = ctRegex!(`^_[*] `);
static para_bullet_indent = ctRegex!(`^_(?P<indent>[1-9])[*] `);
static para_indent = ctRegex!(`^_(?P<indent>[1-9])[ ]`);
@@ -172,6 +180,33 @@ static para_attribs = ctRegex!(`^_(?:(?:[0-9])
static para_inline_link_anchor = ctRegex!(`\*[~](?P<anchor>[a-z0-9_.-]+)(?= |$)`,"i");
#+END_SRC
+#+NAME: grouped_text_rgx_paragraph_marks
+#+BEGIN_SRC d
+/+ paragraph operators +/
+static grouped_para_indent_1 = ctRegex!(`^_1[ ]`, "m");
+static grouped_para_indent_2 = ctRegex!(`^_2[ ]`, "m");
+static grouped_para_indent_3 = ctRegex!(`^_3[ ]`, "m");
+static grouped_para_indent_4 = ctRegex!(`^_4[ ]`, "m");
+static grouped_para_indent_5 = ctRegex!(`^_5[ ]`, "m");
+static grouped_para_indent_6 = ctRegex!(`^_6[ ]`, "m");
+static grouped_para_indent_7 = ctRegex!(`^_7[ ]`, "m");
+static grouped_para_indent_8 = ctRegex!(`^_8[ ]`, "m");
+static grouped_para_indent_9 = ctRegex!(`^_9[ ]`, "m");
+static grouped_para_bullet = ctRegex!(`^_[*] `, "m");
+static grouped_para_bullet_indent_1 = ctRegex!(`^_1[*] `, "m");
+static grouped_para_bullet_indent_2 = ctRegex!(`^_2[*] `, "m");
+static grouped_para_bullet_indent_3 = ctRegex!(`^_3[*] `, "m");
+static grouped_para_bullet_indent_4 = ctRegex!(`^_4[*] `, "m");
+static grouped_para_bullet_indent_5 = ctRegex!(`^_5[*] `, "m");
+static grouped_para_bullet_indent_6 = ctRegex!(`^_6[*] `, "m");
+static grouped_para_bullet_indent_7 = ctRegex!(`^_7[*] `, "m");
+static grouped_para_bullet_indent_8 = ctRegex!(`^_8[*] `, "m");
+static grouped_para_bullet_indent_9 = ctRegex!(`^_9[*] `, "m");
+static grouped_para_bullet_indent = ctRegex!(`^_(?P<indent>[1-9])[*] `, "m");
+static grouped_para_indent = ctRegex!(`^_(?P<indent>[1-9])[ ]`, "m");
+static grouped_para_indent_hang = ctRegex!(`^_(?P<hang>[0-9])_(?P<indent>[0-9])[ ]`, "m");
+#+END_SRC
+
** blocked markup
*** blocked markup curly & tic :block:
@@ -414,6 +449,7 @@ static template spineRgxOut() {
<<prgmkup_rgx_table>>
<<sp_ch_xhtml_rgx>>
<<sp_ch_latex_rgx>>
+ <<grouped_text_rgx_paragraph_marks>>
}
}
#+END_SRC