diff options
Diffstat (limited to 'org/sdp.org')
-rw-r--r-- | org/sdp.org | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/org/sdp.org b/org/sdp.org index ce0aa0d..3332107 100644 --- a/org/sdp.org +++ b/org/sdp.org @@ -23,7 +23,7 @@ struct Version { int minor; int patch; } -enum ver = Version(0, 13, 5); +enum ver = Version(0, 13, 6); #+END_SRC * 1. sdp (sisu document parser) :sdp: @@ -306,9 +306,9 @@ if (helpInfo.helpWanted) { defaultGetoptPrinter("Some information about the program.", helpInfo.options); } foreach(arg; args) { - if (match(arg, rgx.flag_action)) { + if (arg.match(rgx.flag_action)) { flag_action ~= " " ~ arg; // flags not taken by getopt - } else if (match(arg, rgx.src_pth)) { + } else if (arg.match(rgx.src_pth)) { fns_src ~= arg; // gather input markup source file names for processing } else { // anything remaining, unused arg_unrecognized ~= " " ~ arg; @@ -361,7 +361,7 @@ scope(failure) { } } enforce( - match(fn_src, rgx.src_pth), + fn_src.match(rgx.src_pth), "not a sisu markup filename" ); #+END_SRC @@ -580,7 +580,7 @@ struct DocumentMatters { } auto language() { string _k; - if (auto m = match(fn_src, rgx.language_code_and_filename)) { + if (auto m = fn_src.match(rgx.language_code_and_filename)) { _k = m.captures[1]; } else { _k = "en"; |