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

[dot] Fix semicolon as attribute list separator #4273

Merged
merged 1 commit into from
Oct 4, 2024

Conversation

dundalek
Copy link
Contributor

@dundalek dundalek commented Oct 4, 2024

Attributes in Graphviz can be separated not only by comma, but also a semicolon.

Example of a dot file that currently fails to parse, but works with graphviz dot -Tsvg g.dot > g.svg:

graph {
  A [color=blue; shape=hexagon]
}

Matching rule in DOT language grammar:

grammar.png

@teverett teverett added the dot label Oct 4, 2024
@teverett
Copy link
Member

teverett commented Oct 4, 2024

@dundalek thanks!

@teverett teverett merged commit f417a5e into antlr:master Oct 4, 2024
33 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants