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.org62
1 files changed, 31 insertions, 31 deletions
diff --git a/org/default_regex.org b/org/default_regex.org
index e1f8d26..95167b4 100644
--- a/org/default_regex.org
+++ b/org/default_regex.org
@@ -11,11 +11,11 @@
#+PROPERTY: header-args :padline no :exports code :noweb yes
#+EXPORT_SELECT_TAGS: export
#+EXPORT_EXCLUDE_TAGS: noexport
-#+FILETAGS: :sdp:rel:ao:
+#+FILETAGS: :sdp:rel:meta:
#+TAGS: assert(a) class(c) debug(d) mixin(m) sdp(s) tangle(T) template(t) WEB(W) noexport(n)
[[./sdp.org][sdp]] [[./][org/]]
-* 0. ao ctRegex :module:sdp:ao_rgx:
+* 0. meta ctRegex :module:sdp:meta_rgx:
[[./sdp.org][sdp]] [[./][org/]]
http://dlang.org/phobos/std_regex.html
- Plain string, in which case it's compiled to bytecode before matching.
@@ -24,16 +24,16 @@ http://dlang.org/phobos/std_regex.html
** 0. module template
-#+name: tangle_ao_rgx
-#+BEGIN_SRC d :tangle ../src/sdp/ao/rgx.d
+#+name: tangle_meta_rgx
+#+BEGIN_SRC d :tangle ../src/sdp/meta/rgx.d
/++
regex: regular expressions used in sisu document parser
+/
-module sdp.ao.rgx;
+module sdp.meta.rgx;
template SiSUrgxInit() {
- import sdp.ao.defaults;
+ import sdp.meta.defaults;
struct Rgx {
- <<ao_rgx>>
+ <<meta_rgx>>
<<prgmkup_rgx>>
}
}
@@ -41,7 +41,7 @@ template SiSUrgxInit() {
** misc :misc:
-#+name: ao_rgx
+#+name: meta_rgx
#+BEGIN_SRC d
/+ misc +/
static true_dollar = ctRegex!(`\$`, "gm");
@@ -76,7 +76,7 @@ static numeric_col = ctRegex!(`^[ 0-9,.$£₤
** comments :comment:
-#+name: ao_rgx
+#+name: meta_rgx
#+BEGIN_SRC d
/+ comments +/
static comment = ctRegex!(`^%+ `);
@@ -85,7 +85,7 @@ static comments = ctRegex!(`^%+ |^%+$`);
** config
-#+name: ao_rgx
+#+name: meta_rgx
#+BEGIN_SRC d
/+ header +/
static make_simple_substitutions_rb = ctRegex!(`(?P<substitution>/(?P<match>.+?)/,[ ]*['"](?P<replace>.+?)['"])`);
@@ -95,7 +95,7 @@ static make_simple_substitutions_d = ctRegex!(`(?P<substitu
** native headers
*** native header :native:header:
-#+name: ao_rgx
+#+name: meta_rgx
#+BEGIN_SRC d
/+ header +/
static main_headers =
@@ -114,7 +114,7 @@ static raw_author_munge = ctRegex!(`(\S.+?),\s+(.+
*** subheader :native:subheader:
-#+name: ao_rgx
+#+name: meta_rgx
#+BEGIN_SRC d
/+ head +/
static native_subhead_creator = ctRegex!(`^(?:author|translator|illustrator)$`, "m");
@@ -131,7 +131,7 @@ static native_subhead_make = ctRegex!(`^(?:cover_imag
** heading & paragraph operators :paragraph:operator:
-#+name: ao_rgx
+#+name: meta_rgx
#+BEGIN_SRC d
/+ heading & paragraph operators +/
static heading_a = ctRegex!(`^:?[A][~] `, "m");
@@ -162,7 +162,7 @@ static para_attribs = ctRegex!(`^_(?:(?:[0-9])
** blocked markup
*** blocked markup :block:tic:
-#+name: ao_rgx
+#+name: meta_rgx
#+BEGIN_SRC d
/+ blocked markup +/
static block_open = ctRegex!("^((code([.][a-z][0-9a-z_]+)?|poem|group|block|quote|table)[{].*?$)|^`{3} (code([.][a-z][0-9a-z_]+)?|poem|group|block|quote|table)|^[{]table(~h)?(?P<columns>(?:[ ]+[0-9]+;)+)[}]");
@@ -171,7 +171,7 @@ static block_poem_open = ctRegex!("^((poem[{].*?$
** blocked markup tics :block:tic:
-#+name: ao_rgx
+#+name: meta_rgx
#+BEGIN_SRC d
/+ blocked markup tics +/
static block_tic_open = ctRegex!("^`{3} (code([.][a-z][0-9a-z_]+)?|poem|group|block|quote|table)"); // what of numbered code?
@@ -186,7 +186,7 @@ static block_tic_close = ctRegex!("^(`{3})$","m")
*** blocked markup curly :block:curly:
-#+name: ao_rgx
+#+name: meta_rgx
#+BEGIN_SRC d
/+ blocked markup curly +/
static block_curly_open = ctRegex!(`^((code([.][a-z][0-9a-z_]+)?|poem|group|block|quote|table)[{].*?$)`);
@@ -207,7 +207,7 @@ static block_curly_table_special_markup = ctRegex!(`^[{]table((~h)
*** block sub-matches :block:curly:
-#+name: ao_rgx
+#+name: meta_rgx
#+BEGIN_SRC d
static table_head_instructions = ctRegex!(`(?P<c_heading>h)?(?:[ ]+c(?P<c_num>[0-9]);)?(?P<c_widths>(?:[ ]+[0-9]+[lr]?;)+)`);
static table_col_widths_and_alignment = ctRegex!(`(?P<width>[0-9]+)(?P<align>[lr]?)`);
@@ -220,7 +220,7 @@ static table_col_separator_nl = ctRegex!(`[┊]$`, "mg")
** inline markup footnotes endnotes :inline:footnote:
-#+name: ao_rgx
+#+name: meta_rgx
#+BEGIN_SRC d
/+ inline markup footnotes endnotes +/
static inline_notes_curly_gen = ctRegex!(`~\{.+?\}~`, "m");
@@ -246,7 +246,7 @@ static note_ref = ctRegex!(`^\S+?noteref_(
*** links/ urls :inline:footnote:
-#+name: ao_rgx
+#+name: meta_rgx
#+BEGIN_SRC d
static inline_url_generic = ctRegex!(`(?:^|[}(\[ ])(?:(?:https?|git):\/\/|¤?\.\.\/|¤?\.\/|¤|#)[a-zA-Z0-9_#]`, "mg");
static inline_url = ctRegex!(`((?:(?:https?|git):\/\/|¤?\.\.\/|¤?\.\/|¤|#)[a-zA-Z0-9_]\S*)`, "mg");
@@ -258,14 +258,14 @@ static inline_link_endnote_url_helper = ctRegex!(`\{~\^\s+(?P<c
*** images :images:
-#+name: ao_rgx
+#+name: meta_rgx
#+BEGIN_SRC d
static image = ctRegex!(`([a-zA-Z0-9._-]+?\.(?:png|gif|jpg))`, "mg");
#+END_SRC
*** inline markup book index :inline:bookindex:
-#+name: ao_rgx
+#+name: meta_rgx
#+BEGIN_SRC d
/+ inline markup book index +/
static book_index = ctRegex!(`^=\{\s*(.+?)\}$`, "m");
@@ -275,7 +275,7 @@ static book_index_close = ctRegex!(`^(.*?)\}$`, "m
** no obj_cite_number object :ocn:off:object:
-#+name: ao_rgx
+#+name: meta_rgx
#+BEGIN_SRC d
/+ no obj_cite_number object +/
static obj_cite_number_off = ctRegex!(`~#$`, "m");
@@ -285,7 +285,7 @@ static obj_cite_number_off_all = ctRegex!(`[~-]#$`, "m");
** no obj_cite_number block :ocn:off:block:
-#+name: ao_rgx
+#+name: meta_rgx
#+BEGIN_SRC d
/+ no obj_cite_number block +/
static obj_cite_number_off_block = ctRegex!(`^--~#$`);
@@ -296,7 +296,7 @@ static obj_cite_number_block_marks = ctRegex!(`^--[+~-]#$`);
** ignore outside code blocks :block:code:
-#+name: ao_rgx
+#+name: meta_rgx
#+BEGIN_SRC d
/+ ignore outside code blocks +/
static skip_from_regular_parse = ctRegex!(`^(--[+~-]#|-[\\]{2}-|=[.\\]{2}=)$`);
@@ -304,7 +304,7 @@ static skip_from_regular_parse = ctRegex!(`^(--[+~-]#|-[\\]{2}-|=[.\\]{2}=)$`
** line & page breaks :break:
-#+name: ao_rgx
+#+name: meta_rgx
#+BEGIN_SRC d
/+ line & page breaks +/
static break_line_within_object = ctRegex!(`[\\]{2}( |$)`);
@@ -317,7 +317,7 @@ static parent = ctRegex!(`([0-7]):([0-9]
** json :json:
-#+name: ao_rgx
+#+name: meta_rgx
#+BEGIN_SRC d
/+ json +/
static tailing_comma = ctRegex!(`,$`, "m");
@@ -325,7 +325,7 @@ static tailing_comma = ctRegex!(`,$`, "m");
** biblio tags :biblio:tags:
-#+name: ao_rgx
+#+name: meta_rgx
#+BEGIN_SRC d
/+ biblio tags +/
static biblio_tags = ctRegex!(`^(is|au|author_raw|author|author_arr|editor_raw|ed|editor_arr|ti|title|subtitle|fulltitle|lng|language|trans|src|jo|journal|in|vol|volume|edn|edition|yr|year|pl|place|pb|pub|publisher|url|pg|pages|note|short_name|id):\s+(.+)`);
@@ -334,7 +334,7 @@ static biblio_abbreviations = ctRegex!(`^(au|ed|ti|lng
** bookindex split :bookindex:split:
-#+name: ao_rgx
+#+name: meta_rgx
#+BEGIN_SRC d
/+ bookindex split +/
static bi_main_terms_split = ctRegex!(`\s*;\s*`);
@@ -345,7 +345,7 @@ static bi_term_and_obj_cite_numbers_match = ctRegex!(`^(.+?)\+(\d+)`
** language codes :language:codes:
-#+name: ao_rgx
+#+name: meta_rgx
#+BEGIN_SRC d
/+ language codes +/
auto language_codes =
@@ -363,7 +363,7 @@ http://dlang.org/phobos/std_regex.html
** 0. module template
-#+name: tangle_ao_rgx
+#+name: tangle_meta_rgx
#+BEGIN_SRC d :tangle ../src/sdp/output/rgx.d
/++
regex: regular expressions used in sisu document parser
@@ -390,7 +390,7 @@ static xhtml_greater_than = ctRegex!(`[>]`); // &gt
static xhtml_line_break = ctRegex!(` [\\]{2}`); // <br />
#+END_SRC
-* 2. ctRegex defaults shared by ao & output (generic)
+* 2. ctRegex defaults shared by meta & output (generic)
** misc generic
#+name: prgmkup_rgx