Open shakeelmohamed opened 8 years ago
The regex for this is similar to to what's used for settings. Block comment ends with:
^\\s$
lineI don't think such comments syntax is supported, it is not documented and is not used in splunk default conf files in /etc dir.
@mkldon It may not be documented, but it's definitely a common practice if you look at the .conf.spec
files shipped in Splunk or apps
Well, spec files are not realy conf files, they are just a documentation. I think * comment may be a valid syntax for multiline setting in conf file. Example:
search = \
* | stats count
Well, spec files are not realy conf files, they are just a documentation.
We can debate this for eternity, but spec files are definitely more than just documentation.
Your example would be correctly parsed as with the value \\n* | stats count
, this is a good edge case though.
I suppose we could actually add another syntax definition just for spec files, but that seems silly.
Either way, these kinds of comments appear in spec files and regular conf files.
Many .conf files contain lines like: