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






--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
              http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
  http://lists.digium.com/mailman/listinfo/asterisk-users

Reply via email to