Skip to content

C++ Reparse: the AST isn't coloured anymore #528

Open
@whisperity

Description

@whisperity

The current version when generating the AST HTML output does not seem to call the appropriate methods which would result in calls to our ANSI colours -> HTML sequences formatting. It is very likely that during the uplift to LLVM 10.0 (#432) we forgot to add a virtual method's override or something like that.

Screenshot of the broken reparse AST-view. It shows the AST output in one giant default-coloured (black) monospace widget, with the Developer Tools visible underneath showing some HTML sequences like monospace font or explicit newlines.

Oddly enough, some of the logic, such as putting things between ' in the raw output to <tt> still runs, as seen in the picture. The relevant code snippet that seems to get executed properly:

case '\'':
// Things between apostrophes are usually type or function names,
// so we present them as monospace.
if (!monospaceEmitted)
buffer.append("<tt>");
buffer.append("&apos;");
if (monospaceEmitted)
buffer.append("</tt>");
monospaceEmitted = !monospaceEmitted;
break;

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions