commit | 5b93049a2c58f02dd1fd99d477efb5faa21b7a7d | [log] [tgz] |
---|---|---|
author | Radek Krejci <rkrejci@cesnet.cz> | Tue Jun 11 14:54:08 2019 +0200 |
committer | Radek Krejci <rkrejci@cesnet.cz> | Tue Jun 11 14:55:36 2019 +0200 |
tree | 3c03e61357191449fa90bb05cfa57e837f17e3a4 | |
parent | 5a9105af22bda6d8ce61e5b5e3e003bbee79b785 [diff] [blame] |
YANG parser BUGFIX processing block comments Incorrect processing of **/ sequence terminating a comment.
diff --git a/src/parser_yang.c b/src/parser_yang.c index bf1361c..3719f12 100644 --- a/src/parser_yang.c +++ b/src/parser_yang.c
@@ -342,7 +342,7 @@ case 3: if (**data == '/') { comment = 0; - } else { + } else if (**data != '*') { if (**data == '\n') { ++ctx->line; }