summaryrefslogtreecommitdiff
path: root/xsd/cxx
diff options
context:
space:
mode:
Diffstat (limited to 'xsd/cxx')
-rw-r--r--xsd/cxx/tree/name-processor.cxx4
1 files changed, 4 insertions, 0 deletions
diff --git a/xsd/cxx/tree/name-processor.cxx b/xsd/cxx/tree/name-processor.cxx
index 456095f..1adfc38 100644
--- a/xsd/cxx/tree/name-processor.cxx
+++ b/xsd/cxx/tree/name-processor.cxx
@@ -249,6 +249,10 @@ namespace CXX
// Enumerator name regex.
//
{
+ // By default map an empty enumerator to the 'empty' word.
+ //
+ enumerator_regex.push_back ("/^$/empty/");
+
compile_regex (options.value<CLI::enumerator_regex> (),
enumerator_regex,
"enumerator");