[asterisk-users] FYI: Block Comments
Brian LaVallee
b.lavallee at globaltank.jp
Mon Aug 25 00:36:11 CDT 2014
Hello,
Here's a fun issue that recently caused me some serious heartache.
Hope this helps others from making the same mistake.
Did you know that the configuration parser supports block-comments.
Like an idiot, I've been highlighting text between dashes.
[example]
; -- Most of my comments were single-line like this --
exten => _1X.,1,NoOp(This would load fine)
;
;-- I did not even use
block-comments like
this one in my config
file --;
;
exten => _2X.,1,NoOp(Loads OK)
;
;-- But look! -- I missed a space between the semi-colon and two dashes --
exten => _3X.,1,NoOp(This would NOT load)
; -- The parser stopped loading anything past the above mistake --
; -- Missing that space started a block-comment - Arghhh! --
exten => _4X.,1,NoOp(This would NOT load either)
; -end
Guess I have to change my highlight syntax, avoiding dashes in the future.
Sincerely,
Brian LaVallee
More information about the asterisk-users
mailing list