Skip to content
Permalink
Browse files

Allow comments in a VSL query

Now that we can have multiple lines in a query, it may come in handy to
add a description of a query or its purpose.
  • Loading branch information...
Dridi committed May 17, 2019
1 parent 406ec85 commit 94ca452d73cd09b4e8fb858797224281c12c1978
Showing with 7 additions and 0 deletions.
  1. +7 −0 lib/libvarnishapi/vxp_lexer.c
@@ -109,6 +109,13 @@ vxp_Lexer(struct vxp *vxp)
continue;
}

/* Skip comments */
if (*p == '#') {
while (p < vxp->e && *p != '\n')
p++;
continue;
}

/* Match for the fixed tokens */
u = vxp_fixed_token(p, &q);
if (u != 0) {

0 comments on commit 94ca452

Please sign in to comment.
You can’t perform that action at this time.