Commit e37dc4d9 authored by Dag Erling Smørgrav's avatar Dag Erling Smørgrav

Add support for C++-style comments.

git-svn-id: http://www.varnish-cache.org/svn/trunk@1130 d4fa192b-c00b-0410-8231-f00ffab90ce4
parent 40358e1b
......@@ -313,6 +313,13 @@ vcc_Lexer(struct tokenlist *tl, const char *b, const char *e)
continue;
}
/* Skip C++-style comments */
if (*p == '/' && p[1] == '/') {
while (p < e && *p != '\n')
p++;
continue;
}
/* Match for the fixed tokens (see token.tcl) */
u = vcl_fixed_token(p, &q);
if (u != 0) {
......
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