bafolts / plantcode

Provides a javascript utility to generate code in various languages given a plantuml class diagram.

Home Page:https://segmentationfaults.com/plantcode

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

plantuml-code-generator can't handle comments

sruehl opened this issue · comments

Following plant file fails:

  @startuml
  ' this is a comment
  class A
  class B
  A --|> B
  @enduml

with message:

Error parsing input file: 
SyntaxError: Expected "@enduml", "abstract ", "class ", "hide empty members", "namespace ", "package ", "setpropname.*", "skinparam", "title ", [ \t], [#], [+], [-], [A-Za-z_], [\n] or [\r\n] but "'" found.

Tested with upstream code

This is probably due to the comment tag, I can fix this within the week. Will close this issue when completed.

This should be fixed by

d085f96

I added an integration test with the sample file you provided. You should be good to go. Thanks for the help.