mirror of https://github.com/Icinga/icinga2.git
parent
eba60b625f
commit
e6667c15d3
|
@ -420,7 +420,7 @@ Non-empty dictionary | { key = "value" } | true
|
|||
|
||||
### <a id="comments"></a> Comments
|
||||
|
||||
The Icinga 2 configuration format supports C/C++-style comments.
|
||||
The Icinga 2 configuration format supports C/C++-style and shell-style comments.
|
||||
|
||||
Example:
|
||||
|
||||
|
@ -429,7 +429,7 @@ Example:
|
|||
*/
|
||||
object Host "localhost" {
|
||||
check_interval = 30 // this is also a comment.
|
||||
retry_interval = 15
|
||||
retry_interval = 15 # yet another comment
|
||||
}
|
||||
|
||||
### <a id="includes"></a> Includes
|
||||
|
|
|
@ -196,6 +196,7 @@ static char *lb_steal(lex_buf *lb)
|
|||
|
||||
|
||||
\/\/[^\n]* /* ignore C++-style comments */
|
||||
#[^\n]* /* ignore shell-style comments */
|
||||
[ \t] /* ignore whitespace */
|
||||
|
||||
<INITIAL>{
|
||||
|
|
Loading…
Reference in New Issue