codeout / junoser

PEG parser for JUNOS configuration.
MIT License
69 stars 11 forks source link

Some characters like "#" in a description occur an invalid syntax error. #4

Closed kunitake closed 9 years ago

kunitake commented 9 years ago

Some characters like "#" in a description occur an invalid syntax error.

interfaces {
   ge-1/0/0 {
       description "abc #1";
       unit 0 {
           family inet {
               address 192.0.2.1/30;
           }
       }
   }
}

Best regards,

codeout commented 9 years ago

This is fixed at c5be08bd139af9cb690ddfd99e01b3c7452a28a1. Thanks for reporting.

junoser $ cat config
interfaces {
   ge-1/0/0 {
       description "abc #1";
       unit 0 {
           family inet {
               address 192.0.2.1/30;
           }
       }
   }
}
junoser $ bundle exec junoser -c config