diff options
Diffstat (limited to 'conf/confbase.Y')
-rw-r--r-- | conf/confbase.Y | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/conf/confbase.Y b/conf/confbase.Y index 8b9f206a..cba6fc56 100644 --- a/conf/confbase.Y +++ b/conf/confbase.Y @@ -77,6 +77,7 @@ CF_DECLS %type <time> datetime %type <a> ipa %type <px> prefix prefix_or_ipa +%type <t> text %type <t> text_or_none %nonassoc PREFIX_DUMMY @@ -191,6 +192,14 @@ datetime: } ; +text: + TEXT + | SYM { + if ($1->class != (SYM_CONSTANT | T_STRING)) cf_error("String expected"); + $$ = SYM_VAL($1).s; + } + ; + text_or_none: TEXT { $$ = $1; } | { $$ = NULL; } |