From 41cd52328d32cc13cd046c4c6c4c0f4920f05efa Mon Sep 17 00:00:00 2001 From: bculkin2442 Date: Fri, 17 Jan 2020 18:17:36 -0500 Subject: Minor updates and such --- clformat/data/clformat.sprop | 57 ++++++++++++++++++++++++++++++++++++++++++++ clformat/data/formats.sprop | 57 -------------------------------------------- 2 files changed, 57 insertions(+), 57 deletions(-) create mode 100644 clformat/data/clformat.sprop delete mode 100644 clformat/data/formats.sprop (limited to 'clformat/data') diff --git a/clformat/data/clformat.sprop b/clformat/data/clformat.sprop new file mode 100644 index 0000000..ba1e83c --- /dev/null +++ b/clformat/data/clformat.sprop @@ -0,0 +1,57 @@ +###################################### +# CL format string regular expressions +###################################### + +## Format a regular expression for matching a potential CL format directive +## Has two parts +## 1) The optional set of prefix parameters +## 2) The optional modifier +## Captures three things +## 1) The prefix parameters +## 2) The modifiers +## 3) The directive name +## 4) The function name, if the directive was a function call. +clFormatDirective ~(?%1$s)?(?%2$s?)(?:%3$s) + +## Matches a format string prefix parameter +## A prefix parameter is one of +## * A signed decimal number +## * A single character preceded by a single quote +## * The letter V (or v) +## * The character # +## * The character % +## * A double-quoted string +clFormatPrefixParam (?:(?:[-+]?\d+|'.|[Vv]|#|%|".*?(?`?[\S&&[^/]])|(?:/(?[\S&&[^/]]+)/)) + +################################################# +# Generic format strings for regular expressions. +################################################# + +## Format a regular expression for matching a delimiter separated list. +## Takes two parameters +## 1) The expression for each term +## 2) The expression for the delimiter +delimSeparatedList (?:%1$s(?:%2$s%1$s)*) diff --git a/clformat/data/formats.sprop b/clformat/data/formats.sprop deleted file mode 100644 index ba1e83c..0000000 --- a/clformat/data/formats.sprop +++ /dev/null @@ -1,57 +0,0 @@ -###################################### -# CL format string regular expressions -###################################### - -## Format a regular expression for matching a potential CL format directive -## Has two parts -## 1) The optional set of prefix parameters -## 2) The optional modifier -## Captures three things -## 1) The prefix parameters -## 2) The modifiers -## 3) The directive name -## 4) The function name, if the directive was a function call. -clFormatDirective ~(?%1$s)?(?%2$s?)(?:%3$s) - -## Matches a format string prefix parameter -## A prefix parameter is one of -## * A signed decimal number -## * A single character preceded by a single quote -## * The letter V (or v) -## * The character # -## * The character % -## * A double-quoted string -clFormatPrefixParam (?:(?:[-+]?\d+|'.|[Vv]|#|%|".*?(?`?[\S&&[^/]])|(?:/(?[\S&&[^/]]+)/)) - -################################################# -# Generic format strings for regular expressions. -################################################# - -## Format a regular expression for matching a delimiter separated list. -## Takes two parameters -## 1) The expression for each term -## 2) The expression for the delimiter -delimSeparatedList (?:%1$s(?:%2$s%1$s)*) -- cgit v1.2.3