summaryrefslogtreecommitdiff
path: root/BJC-Utils2/data
diff options
context:
space:
mode:
authorBenjamin J. Culkin <bjculkin@mix.wvu.edu>2017-09-15 10:57:43 -0300
committerBenjamin J. Culkin <bjculkin@mix.wvu.edu>2017-09-15 10:57:43 -0300
commit2f93e24a217c3e9f8f2c4848c88f8229ef1fdc80 (patch)
tree926c3df16aba7b6b5b94d68ba8eaf3e0d320826a /BJC-Utils2/data
parent9db681f1d8dd83104409de202f44b94169ff896b (diff)
parentabe96dceeed6b0ffb0a132b15fbbe7942fec7f58 (diff)
Merge branch 'master' of ssh://10.65.77.3/home/bjculkin/git/bjc-utils2
Join discrete changes of the formatter.
Diffstat (limited to 'BJC-Utils2/data')
-rw-r--r--BJC-Utils2/data/formats.sprop3
-rw-r--r--BJC-Utils2/data/regexes.sprop5
2 files changed, 7 insertions, 1 deletions
diff --git a/BJC-Utils2/data/formats.sprop b/BJC-Utils2/data/formats.sprop
index 73ebc29..72f6e74 100644
--- a/BJC-Utils2/data/formats.sprop
+++ b/BJC-Utils2/data/formats.sprop
@@ -22,7 +22,8 @@ delimSeparatedList (?:%1$s(?:%2$s%1$s)*)
## 1) The prefix parameters
## 2) The modifiers
## 3) The directive name
-clFormatDirective ~(?<params>%1$s)?(?<modifiers>%2$s?)(?<name>\S)
+## 4) The function name, if the directive was a function call.
+clFormatDirective ~(?<params>%1$s)?(?<modifiers>%2$s?)(?:%3$s)
####################################################
# Format strings for handling double-quoted strings.
diff --git a/BJC-Utils2/data/regexes.sprop b/BJC-Utils2/data/regexes.sprop
index dadc09c..89c5b4f 100644
--- a/BJC-Utils2/data/regexes.sprop
+++ b/BJC-Utils2/data/regexes.sprop
@@ -50,6 +50,11 @@ clFormatPrefix (?:[-+]?\d+|'\S|[Vv]|#)
## A modifier is either : or @, or both in either order
clFormatModifier (?:@|:|@:|:@)
+## Matches a directive name.
+## A directive name is either
+## 1) A single, non-whitespace, non-/ character
+## 2) A name enclosed in /'s
+clFormatName (?:(?<name>[\S&&[^/]])|(?:/(?<funcname>[\S&&[^/]]+)/))
##############################################
# Miscellaneous validation regular expressions
##############################################