Fix comment parsing in message definitions

This commit is contained in:
Marko Durkovic
2022-07-28 19:14:39 +02:00
parent 17f4d54449
commit 1de7380138
4 changed files with 57 additions and 37 deletions
+8 -1
View File
@@ -118,6 +118,12 @@ module test_msgs {
// comment in module
typedef std_msgs::msg::Bool Bool;
/**/ /***/ /* block comment */
/*
* block comment
*/
module msg {
// comment in submodule
typedef Bool Balias;
@@ -131,10 +137,11 @@ module test_msgs {
@comment(type="text", text="ignore")
struct Foo {
// comment in struct
std_msgs::msg::Header header;
Balias bool;
Bar sibling;
double x;
double/* comment in member declaration */x;
sequence<double> seq1;
sequence<double, 4> seq2;
d4 array;