You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In this list, a comment appears along with one of the list items and fails with the error:
simple.conf:1: unexpected token 'Comment'
The lexer suggests,
/*
* handle one-line comments
*
* Note: Comments with lots of leading #### or //// are fully
* consumed and are not included in CFGT_COMMENT yylval
*/
"#"{1,}.* return qstr(cfg, '#', CFGT_COMMENT);
"/"{2,}.* return qstr(cfg, '/', CFGT_COMMENT);
So I added extra '#' to see if this goes away. But it didn't.
Sometimes in our usage, we do comment out a few configuration items or leave a comment next items. The new parser in 3.3 (master) seems to be also collecting comments for some reason.
Note, we were using libConfuse version 3.0 and were planning to move to 3.3 owing to some memory leak fixes. But there seems to be some feature about CFGF_COMMENTS for which I can't seem to find proper documentation on to understand the rationale behind it.
What is the right way to comment out or put comments inside of lists?
The text was updated successfully, but these errors were encountered:
When a comment appears as part of list it fails to parse correctly. See an example below:
In this list, a comment appears along with one of the list items and fails with the error:
The lexer suggests,
So I added extra '#' to see if this goes away. But it didn't.
Sometimes in our usage, we do comment out a few configuration items or leave a comment next items. The new parser in 3.3 (master) seems to be also collecting comments for some reason.
Note, we were using libConfuse version 3.0 and were planning to move to 3.3 owing to some memory leak fixes. But there seems to be some feature about
CFGF_COMMENTS
for which I can't seem to find proper documentation on to understand the rationale behind it.What is the right way to comment out or put comments inside of lists?
The text was updated successfully, but these errors were encountered: