bzixilu / dotplugin

Dot language plugin for Intellij IDEA
55 stars 10 forks source link

HTML-based nodes cause errors #34

Open kenahoo opened 1 year ago

kenahoo commented 1 year ago

The following simple HTML-based node seems to confuse the parser, as seen in the screenshot below:

digraph {
  my_table [
    label=<<TABLE BORDER="0" CELLBORDER="1" CELLSPACING="0">
      <TR><TD COLSPAN="2">Title</TD></TR>
      <TR><TD>Left</TD><TD>Right</TD></TR>
      </TABLE>>
    shape=plain
    style=filled
    fillcolor=cornsilk
  ]
}

However, dot does render it correctly:

Screen Shot 2023-01-04 at 5 17 16 PM

The error in the tooltip is DotTokenType.= expected, got '<TR><TD>Left</TD><TD...'.

I'm using version 1.4.1 of the plugin on IntelliJ IDEA 2022.3.1 (Ultimate Edition), on Mac OS 12.6 (Monterey) with an M1 chip. I'm using the workaround in https://github.com/bzixilu/dotplugin/issues/26#issuecomment-1371529811 to get rendering to work.