diff options
| author | Benjamin Culkin <bjculkin@mix.wvu.edu> | 2017-09-11 17:50:19 -0700 |
|---|---|---|
| committer | Benjamin Culkin <bjculkin@mix.wvu.edu> | 2017-09-11 17:50:19 -0700 |
| commit | e9271f470a5c61562d40b4ecf2fbeef123ac127a (patch) | |
| tree | 3932c1e752a7fe8acb560f9ccc6553b6e233e3a2 /BJC-Utils2/data/formats.sprop | |
| parent | 79238de68cb0eb73067d2ecb59e13d8b4f739dea (diff) | |
Start work on implementation of CL format
Diffstat (limited to 'BJC-Utils2/data/formats.sprop')
| -rw-r--r-- | BJC-Utils2/data/formats.sprop | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/BJC-Utils2/data/formats.sprop b/BJC-Utils2/data/formats.sprop index 7d8fc94..73ebc29 100644 --- a/BJC-Utils2/data/formats.sprop +++ b/BJC-Utils2/data/formats.sprop @@ -1,5 +1,29 @@ # File storage for format strings +################################################# +# 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)*) + +###################################### +# 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 +clFormatDirective ~(?<params>%1$s)?(?<modifiers>%2$s?)(?<name>\S) + #################################################### # Format strings for handling double-quoted strings. #################################################### |
