aboutsummaryrefslogtreecommitdiffhomepage
path: root/org/ao_rgx.org
diff options
context:
space:
mode:
authorRalph Amissah <ralph@amissah.com>2015-11-10 19:10:31 -0500
committerRalph Amissah <ralph@amissah.com>2015-11-10 19:30:43 -0500
commita012afaa46a7983fdcf07590f5385403fea044fc (patch)
tree8761b98fbf92218565ba94f9997228330aa34719 /org/ao_rgx.org
parentminor, place sdp.d in lib/ rather than lib/sdp (diff)
org babel block delimiters
Diffstat (limited to 'org/ao_rgx.org')
-rw-r--r--org/ao_rgx.org39
1 files changed, 20 insertions, 19 deletions
diff --git a/org/ao_rgx.org b/org/ao_rgx.org
index f168e7a..ff7f207 100644
--- a/org/ao_rgx.org
+++ b/org/ao_rgx.org
@@ -37,13 +37,14 @@ static para_delimiter = ctRegex!("\n[ ]*\n+");
static levels_markup = ctRegex!(`^[A-D1-4]$`);
static levels_numbered = ctRegex!(`^[0-9]$`);
static levels_numbered_headings = ctRegex!(`^[0-7]$`);
-#+end_src
+#+END_SRC
** markup insert file
#+name: ao_rgx
#+BEGIN_SRC d :exports none
/* insert markup file */
static insert_src_fn_ssi_or_sst = ctRegex!(`^<<\s*(?P<path>[a-zA-Z0-9._-]+/)*(?P<filename>[a-zA-Z0-9._-]+[.]ss[ti])$`);
-#+end_src
+// static insert_ssi_or_sst_fn = ctRegex!(`^<<\s*[a-zA-Z0-9._-]+[.]ss[ti]`);
+#+END_SRC
** header & comments
#+name: ao_rgx
#+BEGIN_SRC d :exports none
@@ -55,7 +56,7 @@ static header_metadata = ctRegex!(`^@([a-z_]+):(?:\s|$)`);
static header_sub = ctRegex!(`^[ ]+:([a-z_]+):\s`);
static head_main = ctRegex!(`^@([a-z_]+):\s*(.*)`, "m");
static head_sub = ctRegex!(`^[ ]*:([a-z_]+):\s+(.+)`, "m");
-#+end_src
+#+END_SRC
** header & paragraph operators
#+name: ao_rgx
#+BEGIN_SRC d :exports none
@@ -71,7 +72,7 @@ static para_bullet_indent = ctRegex!(`^_([1-9])[*] `);
static para_indent = ctRegex!(`^_([1-9]) `);
static para_indent_hang = ctRegex!(`^_([0-9])_([0-9]) `);
static para_attribs = ctRegex!(`^_(([0-9])(_([0-9]))?|_([1-9])?[*]) `);
-#+end_src
+#+END_SRC
** blocked markup tics
#+name: ao_rgx
#+BEGIN_SRC d :exports none
@@ -83,7 +84,7 @@ static block_tic_block_open = ctRegex!("^`{3} (block)");
static block_tic_quote_open = ctRegex!("^`{3} (quote)");
static block_tic_table_open = ctRegex!("^`{3} (table)");
static block_tic_close = ctRegex!("^(`{3})$","m");
-#+end_src
+#+END_SRC
** blocked markup curly
#+name: ao_rgx
#+BEGIN_SRC d :exports none
@@ -100,7 +101,7 @@ static block_curly_quote_open = ctRegex!(`^(quote[{].*?$)`);
static block_curly_quote_close = ctRegex!(`^([}]quote)`);
static block_curly_table_open = ctRegex!(`^(table[{].*?$)`);
static block_curly_table_close = ctRegex!(`^([}]table)`);
-#+end_src
+#+END_SRC
** inline markup font face mod
#+name: ao_rgx
#+BEGIN_SRC d :exports none
@@ -113,7 +114,7 @@ static inline_subscript = ctRegex!(`,\{(?P<text>.+?)\},`);
static inline_strike = ctRegex!(`-\{(?P<text>.+?)\}-`);
static inline_insert = ctRegex!(`\+\{(?P<text>.+?)\}\+`);
static inline_mono = ctRegex!(`#\{(?P<text>.+?)\}#`);
-#+end_src
+#+END_SRC
** inline markup footnotes
#+name: ao_rgx
#+BEGIN_SRC d :exports none
@@ -144,7 +145,7 @@ static inline_notes_square = ctRegex!(`~\[\s*(.+?)\]~`, "mg");
static inline_text_and_note_square_sp = ctRegex!(`(.+?)~\[[*+]+\s+(.+?)\]~`, "mg");
static inline_text_and_note_square = ctRegex!(`(.+?)~\[\s*(.+?)\]~`, "mg");
static inline_note_square_delimiters = ctRegex!(`(~\[\s*)(.+?)(\]~)`, "mg");
-#+end_src
+#+END_SRC
** inline markup book index
#+name: ao_rgx
#+BEGIN_SRC d :exports none
@@ -152,7 +153,7 @@ static inline_note_square_delimiters = ctRegex!(`(~\[\s*)(.+?)(\]~)`, "m
static book_index = ctRegex!(`^=\{\s*(.+?)\}$`, "m");
static book_index_open = ctRegex!(`^=\{\s*([^}]+?)$`);
static book_index_close = ctRegex!(`^(.*?)\}$`, "m"); // strip
-#+end_src
+#+END_SRC
** no ocn object
#+name: ao_rgx
#+BEGIN_SRC d :exports none
@@ -160,7 +161,7 @@ static book_index_close = ctRegex!(`^(.*?)\}$`, "m"); // strip
static ocn_off = ctRegex!(`~#$`, "m");
static ocn_off_dh = ctRegex!(`-#$`, "m");
static ocn_off_all = ctRegex!(`[~-]#$`, "m");
-#+end_src
+#+END_SRC
** no ocn block
#+name: ao_rgx
#+BEGIN_SRC d :exports none
@@ -170,13 +171,13 @@ static ocn_off_block_dh = ctRegex!(`^---#$`);
static ocn_off_block_close = ctRegex!(`^--\+#$`);
// static auto_ocn_ignore = ctRegex!(`^[+~*$-]{3,}$`); // reminder
static ocn_block_marks = ctRegex!(`^--[+~-]#$`);
-#+end_src
+#+END_SRC
** ignore outside code blocks
#+name: ao_rgx
#+BEGIN_SRC d :exports none
/* ignore outside code blocks */
static regular_parse_skip = ctRegex!(`^(--[+~-]#|-[\\]{2}-|=[.\\]{2}=)$`); // not structural info
-#+end_src
+#+END_SRC
** line & page breaks
#+name: ao_rgx
#+BEGIN_SRC d :exports none
@@ -189,13 +190,13 @@ static break_page_line_across = ctRegex!(`^=[.]{2}=$`);
static break_string = ctRegex!(`』`);
// ancestry, parent
static parent = ctRegex!(`([0-7]):([0-9]+)`);
-#+end_src
+#+END_SRC
** json
#+name: ao_rgx
#+BEGIN_SRC d :exports none
/* json */
static tailing_comma = ctRegex!(`,$`, "m");
-#+end_src
+#+END_SRC
** head
#+name: ao_rgx
#+BEGIN_SRC d :exports none
@@ -211,14 +212,14 @@ static subhead_identifier = ctRegex!(`^(?:oclc|pg|isbn)$`, "m");
static subhead_notes = ctRegex!(`^(?:abstract|description)$`, "m");
static subhead_publisher = ctRegex!(`^(?:name)$`, "m");
static subhead_make = ctRegex!(`^(?:cover_image|home_button_image|home_button_text|footer|headings|num_top|breaks|substitute|bold|italics|emphasis|texpdf_font|css)$`, "m");
-#+end_src
+#+END_SRC
** biblio tags
#+name: ao_rgx
#+BEGIN_SRC d :exports none
/* 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+(.+)`);
static biblio_abbreviations = ctRegex!(`^(au|ed|ti|lng|jo|vol|edn|yr|pl|pb|pub|pg|pgs|sn)$`);
-#+end_src
+#+END_SRC
** bookindex split
#+name: ao_rgx
#+BEGIN_SRC d :exports none
@@ -227,11 +228,11 @@ static bi_main_terms_split = ctRegex!(`\s*;\s*`);
static bi_main_term_plus_rest_split = ctRegex!(`\s*:\s*`);
static bi_sub_terms_plus_ocn_offset_split = ctRegex!(`\s*\|\s*`);
static bi_term_and_ocns_match = ctRegex!(`^(.+?)\+(\d+)`);
-#+end_src
+#+END_SRC
* tangles
** code structure: :ao_rgx.d:
#+name: tangle_ao_rgx
-#+BEGIN_SRC d :tangle ../lib/sdp/ao_rgx.d :exports none :noweb yes
+#+BEGIN_SRC d :tangle ../lib/sdp/ao_rgx.d :padline no :exports none :noweb yes
/*
regex
ao_rgx.d
@@ -241,4 +242,4 @@ mixin template RgxInit() {
<<ao_rgx>>
}
}
-#+end_src
+#+END_SRC