Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Comments not properly parsed #46

Closed
Enteee opened this issue Jun 28, 2020 · 0 comments · Fixed by #47
Closed

Comments not properly parsed #46

Enteee opened this issue Jun 28, 2020 · 0 comments · Fixed by #47
Assignees
Labels
bug Something isn't working

Comments

@Enteee
Copy link
Owner

Enteee commented Jun 28, 2020

Describe the bug
One line comments are not properly parsed.

PlantUML

@startuml
' this is a comment
@enduml

yields:

[
  {
    "name": "comment.diag",
    "diagrams": [
      {
        "elements": [
          [
            [],
            "'",
            [
              [
                [
                  null,
                  " "
                ],
                [
                  null,
                  "t"
                ],
                [
                  null,
                  "h"
                ],
                [
                  null,
                  "i"
                ],
                [
                  null,
                  "s"
                ],
                [
                  null,
                  " "
                ],
                [
                  null,
                  "i"
                ],
                [
                  null,
                  "s"
                ],
                [
                  null,
                  " "
                ],
                [
                  null,
                  "a"
                ],
                [
                  null,
                  " "
                ],
                [
                  null,
                  "c"
                ],
                [
                  null,
                  "o"
                ],
                [
                  null,
                  "m"
                ],
                [
                  null,
                  "m"
                ],
                [
                  null,
                  "e"
                ],
                [
                  null,
                  "n"
                ],
                [
                  null,
                  "t"
                ]
              ],
              "\n"
            ]
          ]
        ]
      }
    ]
  }
]

Expected behavior

Should be something like:

[
  {
    "name": "comment.diag",
    "diagrams": [
      {
        "elements": [
          {
             "comment": "this is a comment"
          }
        ]
      }
    ]
  }
]
A clear and concise description of what you expected to happen.

@Enteee Enteee added the bug Something isn't working label Jun 28, 2020
@Enteee Enteee self-assigned this Jun 28, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant