[
https://issues.apache.org/jira/browse/PLC4X-248?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17626821#comment-17626821
]
Lukas Ott commented on PLC4X-248:
---------------------------------
Still a bug in current version?
> Comments after last field breaks MSpec parser
> ---------------------------------------------
>
> Key: PLC4X-248
> URL: https://issues.apache.org/jira/browse/PLC4X-248
> Project: Apache PLC4X
> Issue Type: Bug
> Components: Code-Generation
> Affects Versions: 0.8.0
> Reporter: Ćukasz Dywicki
> Priority: Major
>
> MSpec permits comments in some locations, however their use sometimes leads
> to unexpected results.
> For example below input works fine:
> {code}
> // this is test
> [type 'SDOSegment'
> // first comment
> [simple uint 8 'field']
> ]
> {code}
> But below doesn't work:
> {code}
> [type 'SDOSegment'
> [simple uint 8 'field'] // just read this
> ] // ok, we're done
> {code}
> This is due to fact that comments are permitted only before field and before
> type. They are not permitted after field meaning that last field, which ends
> one section will result in broken input for an parser.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)