Skip to content

Commit

Permalink
parse comments only if Y2PARSECOMMENTS set
Browse files Browse the repository at this point in the history
  • Loading branch information
jreidinger committed Jun 21, 2013
1 parent 5f0711f commit 95d9ab7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion libycp/src/scanner.ll
Expand Up @@ -77,7 +77,8 @@ static tokenValue token_value;
static std::string saved_comment;

void save_comment(const char *text) {
saved_comment += text;
if (getenv("Y2PARSECOMMENTS"))
saved_comment += text;
}

// TODO: detect that we've given the parser a comment
Expand Down

0 comments on commit 95d9ab7

Please sign in to comment.