Closed raphael-proust closed 6 years ago
Thanks for the report! This is fixed in master by escaping graphviz keywords as "keyword"
when needed. This bug fix should be part of the next release by the end of the month.
LGTM
Works in my use case. But I just realised another possible issue: modules with more caps.
$ echo "open EDGE" > NODE.ml
$ touch EDGE.ml
$ codept -dot *.ml | dot
Error: <stdin>: syntax error in line 2 near '->'
The escaping needs to be applied regardless of capitalisation.
When generating a dot file with the
-dot
option, a file namenode.ml
will cause a node of the dependency graph to be namedNode
. This is invalid in DotI think that
node [ name = Node ]
or something along those lines would work.Other problematic identifiers: graph, edge, digraph, subgraph.