summaryrefslogtreecommitdiffstats
path: root/parser.y
diff options
context:
space:
mode:
Diffstat (limited to 'parser.y')
-rw-r--r--parser.y2
1 files changed, 2 insertions, 0 deletions
diff --git a/parser.y b/parser.y
index c71ddce7..321b32e0 100644
--- a/parser.y
+++ b/parser.y
@@ -73,6 +73,7 @@ static val parsed_spec;
%token <lineno> MOD MODLAST DEFINE TRY CATCH FINALLY
%token <lineno> ERRTOK /* deliberately not used in grammar */
%token <lineno> HASH_BACKSLASH HASH_SLASH DOTDOT HASH_H
+%token <lineno> SECRET_ESCAPE_R
%token <val> NUMBER METANUM
@@ -113,6 +114,7 @@ static val parsed_spec;
spec : clauses { parsed_spec = $1; }
| /* empty */ { parsed_spec = nil; }
+ | SECRET_ESCAPE_R regex { parsed_spec = $2; }
| error '\n' { parsed_spec = nil;
if (errors >= 8)
YYABORT;