summaryrefslogtreecommitdiffstats
path: root/conf
diff options
context:
space:
mode:
Diffstat (limited to 'conf')
-rw-r--r--conf/cf-lex.l3
-rw-r--r--conf/confbase.Y3
2 files changed, 5 insertions, 1 deletions
diff --git a/conf/cf-lex.l b/conf/cf-lex.l
index edca7a2..c68a42e 100644
--- a/conf/cf-lex.l
+++ b/conf/cf-lex.l
@@ -200,6 +200,9 @@ WHITE [ \t]
\&\& return AND;
\|\| return OR;
+\[\= return PO;
+\=\] return PC;
+
%%
static int
diff --git a/conf/confbase.Y b/conf/confbase.Y
index fa178d8..e6401f4 100644
--- a/conf/confbase.Y
+++ b/conf/confbase.Y
@@ -45,6 +45,7 @@ CF_DECLS
%token END CLI_MARKER INVALID_TOKEN
%token GEQ LEQ NEQ AND OR
+%token PO PC
%token <i> NUM ENUM
%token <i32> RTRID
%token <a> IPA
@@ -57,7 +58,7 @@ CF_DECLS
%type <px> prefix prefix_or_ipa
%nonassoc PREFIX_DUMMY
-%nonassoc '=' '<' '>' '~' '.' GEQ LEQ NEQ AND OR
+%nonassoc '=' '<' '>' '~' '.' GEQ LEQ NEQ AND OR PO PC
%left '+' '-'
%left '*' '/' '%'
%left '!'