From 897653bcc510a3b6eab9861d518c645fe066b9c3 Mon Sep 17 00:00:00 2001 From: Ralph Amissah Date: Thu, 26 Jan 2017 13:44:44 -0500 Subject: regex template, made more uniform --- org/ao_defaults.org | 56 ++++++++++++++++++++++++++--------------------------- 1 file changed, 28 insertions(+), 28 deletions(-) (limited to 'org/ao_defaults.org') diff --git a/org/ao_defaults.org b/org/ao_defaults.org index e54d360..b46b2ad 100644 --- a/org/ao_defaults.org +++ b/org/ao_defaults.org @@ -14,7 +14,7 @@ [[./sdp.org][sdp]] [[./][org/]] * 0. Code Skeleton / Outline / Structure (tangles) :tangle: -** 1. defaults: :ao_defaults.d: +** 1. defaults: :ao_defaults: #+name: tangle_ao_defaults #+BEGIN_SRC d :tangle ../src/sdp/ao_defaults.d @@ -24,14 +24,14 @@ <> #+END_SRC -** 2. rgx: :ao_rgx.d: +** 2. rgx: :ao_rgx: #+name: tangle_ao_rgx #+BEGIN_SRC d :tangle ../src/sdp/ao_rgx.d /++ regex: regular expressions used in sisu document parser +/ -template RgxInit() { +template SiSUrgxInit() { struct Rgx { mixin SiSUlanguageCodes; <> @@ -41,7 +41,7 @@ template RgxInit() { * 1. default templates :template:defaults: [[./sdp.org][sdp]] [[./][org/]] -** template: settings metadata associative array indexes :settings: +** template: settings metadata associative array indexes :settings: #+name: ao_defaults_templates #+BEGIN_SRC d @@ -190,7 +190,7 @@ template SiSUregisters() { } #+END_SRC -** template: metadata associative array indexes :header: +** template: metadata associative array indexes :header: #+name: ao_defaults_templates #+BEGIN_SRC d @@ -462,7 +462,7 @@ template SiSUlanguageCodes() { } #+END_SRC -** template: flags regex initialize :regex_flags: +** template: flags regex initialize :regex_flags: #+name: ao_defaults_templates #+BEGIN_SRC d @@ -554,7 +554,7 @@ template SiSUnode() { } #+END_SRC -** template: bibliography :biblio: +** template: bibliography :biblio: #+name: ao_defaults_templates #+BEGIN_SRC d @@ -699,7 +699,7 @@ template SiSUpaths() { } #+END_SRC -** template: internal markup :markup: +** template: internal markup :markup: #+name: ao_defaults_templates #+BEGIN_SRC d @@ -734,7 +734,7 @@ http://dlang.org/phobos/std_regex.html - Regex!char (wchar/dchar) that contains a pattern in the form of compiled bytecode. - StaticRegex!char (wchar/dchar) that contains a pattern in the form of compiled native machine code. -** misc :misc: +** misc :misc: #+name: ao_rgx #+BEGIN_SRC d @@ -773,7 +773,7 @@ static src_fn_find_inserts = ctRegex!(`^(?P[a-z static insert_src_fn_ssi_or_sst = ctRegex!(`^<<\s*(?P[a-zA-Z0-9._-]+/)*(?P[a-zA-Z0-9._-]+[.]ss[ti])$`); #+END_SRC -** comments :comment: +** comments :comment: #+name: ao_rgx #+BEGIN_SRC d @@ -782,7 +782,7 @@ static comment = ctRegex!(`^%+ `); static comments = ctRegex!(`^%+ |^%+$`); #+END_SRC -** native header :native:header: +** native header :native:header: #+name: ao_rgx #+BEGIN_SRC d @@ -801,7 +801,7 @@ static variable_doc_author = ctRegex!(`@author|@creat static raw_author_munge = ctRegex!(`(\S.+?),\s+(.+)`,"i"); #+END_SRC -** subheader :native:subheader: +** subheader :native:subheader: #+name: ao_rgx #+BEGIN_SRC d @@ -818,7 +818,7 @@ static native_subhead_publisher = ctRegex!(`^(?:name)$`, " static native_subhead_make = ctRegex!(`^(?:cover_image|home_button_image|home_button_text|footer|headings|num_top|num_depth|breaks|substitute|bold|italics|emphasis|texpdf_font|css)$`, "m"); #+END_SRC -** heading & paragraph operators :paragraph:operator: +** heading & paragraph operators :paragraph:operator: #+name: ao_rgx #+BEGIN_SRC d @@ -849,7 +849,7 @@ static para_indent_hang = ctRegex!(`^_([0-9])_([0- static para_attribs = ctRegex!(`^_(([0-9])(_([0-9]))?|_([1-9])?[*]) `); #+END_SRC -** blocked markup :block:tic: +** blocked markup :block:tic: #+name: ao_rgx #+BEGIN_SRC d @@ -858,7 +858,7 @@ static block_open = ctRegex!("^((code([.][a- static block_poem_open = ctRegex!("^((poem[{].*?$)|`{3} poem)"); #+END_SRC -** blocked markup tics :block:tic: +** blocked markup tics :block:tic: #+name: ao_rgx #+BEGIN_SRC d @@ -873,7 +873,7 @@ static block_tic_table_open = ctRegex!("^`{3} (table)" static block_tic_close = ctRegex!("^(`{3})$","m"); #+END_SRC -** blocked markup curly :block:curly: +** blocked markup curly :block:curly: #+name: ao_rgx #+BEGIN_SRC d @@ -893,7 +893,7 @@ static block_curly_table_open = ctRegex!(`^(table[{].*?$ static block_curly_table_close = ctRegex!(`^([}]table)`); #+END_SRC -** inline markup font face mod :inline:font:face: +** inline markup font face mod :inline:font:face: #+name: ao_rgx #+BEGIN_SRC d @@ -908,7 +908,7 @@ static inline_insert = ctRegex!(`\+\{(?P. static inline_mono = ctRegex!(`#\{(?P.+?)\}#`); #+END_SRC -** inline markup footnotes endnotes :inline:footnote: +** inline markup footnotes endnotes :inline:footnote: #+name: ao_rgx #+BEGIN_SRC d @@ -931,7 +931,7 @@ static inline_text_and_note_curly = ctRegex!(`(?P.+?)( static note_ref = ctRegex!(`^\S+?noteref_([0-9]+)`, "mg"); // {^{73.}^}#noteref_73 #+END_SRC -** inline (internal program) markup footnotes endnotes :inline:footnote: +** inline (internal program) markup footnotes endnotes :inline:footnote: #+name: ao_rgx #+BEGIN_SRC d @@ -963,7 +963,7 @@ static inline_link_endnote_url_helper = ctRegex!(`\{~\^\s+(.+?) static inline_a_url = ctRegex!(`(┤)(\S+?)(├)`, "mg"); #+END_SRC -** inline markup book index :inline:bookindex: +** inline markup book index :inline:bookindex: #+name: ao_rgx #+BEGIN_SRC d @@ -973,7 +973,7 @@ static book_index_open = ctRegex!(`^=\{\s*([^}]+? static book_index_close = ctRegex!(`^(.*?)\}$`, "m"); // strip #+END_SRC -** no obj_cite_number object :ocn:off:object: +** no obj_cite_number object :ocn:off:object: #+name: ao_rgx #+BEGIN_SRC d @@ -983,7 +983,7 @@ static obj_cite_number_off_dh = ctRegex!(`-#$`, "m"); static obj_cite_number_off_all = ctRegex!(`[~-]#$`, "m"); #+END_SRC -** no obj_cite_number block :ocn:off:block: +** no obj_cite_number block :ocn:off:block: #+name: ao_rgx #+BEGIN_SRC d @@ -994,7 +994,7 @@ static obj_cite_number_off_block_close = ctRegex!(`^--\+#$`); static obj_cite_number_block_marks = ctRegex!(`^--[+~-]#$`); #+END_SRC -** ignore outside code blocks :block:code: +** ignore outside code blocks :block:code: #+name: ao_rgx #+BEGIN_SRC d @@ -1002,7 +1002,7 @@ static obj_cite_number_block_marks = ctRegex!(`^--[+~-]#$`); static skip_from_regular_parse = ctRegex!(`^(--[+~-]#|-[\\]{2}-|=[.\\]{2}=)$`); // not structural info #+END_SRC -** line & page breaks :break: +** line & page breaks :break: #+name: ao_rgx #+BEGIN_SRC d @@ -1015,7 +1015,7 @@ static break_string = ctRegex!(`』`); static parent = ctRegex!(`([0-7]):([0-9]+)`); #+END_SRC -** json :json: +** json :json: #+name: ao_rgx #+BEGIN_SRC d @@ -1023,7 +1023,7 @@ static parent = ctRegex!(`([0-7]):([0-9] static tailing_comma = ctRegex!(`,$`, "m"); #+END_SRC -** biblio tags :biblio:tags: +** biblio tags :biblio:tags: #+name: ao_rgx #+BEGIN_SRC d @@ -1032,7 +1032,7 @@ static biblio_tags = ctRegex!(`^(is|au|author static biblio_abbreviations = ctRegex!(`^(au|ed|ti|lng|jo|vol|edn|yr|pl|pb|pub|pg|pgs|sn)$`); #+END_SRC -** bookindex split :bookindex:split: +** bookindex split :bookindex:split: #+name: ao_rgx #+BEGIN_SRC d @@ -1043,7 +1043,7 @@ static bi_sub_terms_plus_obj_cite_number_offset_split = ctRegex!(`\s*\|\s*`); static bi_term_and_obj_cite_numbers_match = ctRegex!(`^(.+?)\+(\d+)`); #+END_SRC -* +set colors for terminal+ (unused) :colors:terminal: +* +set colors for terminal+ (unused) :colors:terminal: #+name: ao_ansi_colors #+BEGIN_SRC d -- cgit v1.2.3