Commit f16e95f8 authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

Make "default" a fully reserved word in syntax 4.0 also

Fixes	#2959
parent 9e1e0972
...@@ -357,7 +357,7 @@ static struct toplev { ...@@ -357,7 +357,7 @@ static struct toplev {
{ "probe", vcc_ParseProbe, VCL_41, VCL_HIGH }, { "probe", vcc_ParseProbe, VCL_41, VCL_HIGH },
{ "import", vcc_ParseImport, VCL_41, VCL_HIGH }, { "import", vcc_ParseImport, VCL_41, VCL_HIGH },
{ "vcl", vcc_ParseVcl, VCL_41, VCL_HIGH }, { "vcl", vcc_ParseVcl, VCL_41, VCL_HIGH },
{ "default", NULL, VCL_41, VCL_HIGH }, { "default", NULL, VCL_40, VCL_HIGH },
{ NULL, NULL } { NULL, NULL }
}; };
......
...@@ -146,7 +146,7 @@ VCC_Symbol(struct vcc *tl, struct symbol *parent, ...@@ -146,7 +146,7 @@ VCC_Symbol(struct vcc *tl, struct symbol *parent,
break; break;
if ((kind == SYM_NONE && kind == sym->kind)) if ((kind == SYM_NONE && kind == sym->kind))
continue; continue;
if (tl->syntax < VCL_41 && if (tl->syntax < VCL_41 && strcmp(sym->name, "default") &&
(kind != SYM_NONE && kind != sym->kind)) (kind != SYM_NONE && kind != sym->kind))
continue; continue;
break; break;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment