1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 22:07:35 +00:00

Shell: Use an opaque default color for BarewordLiteral

Use an opaque default color for BarewordLiteral in
Syntax Highlighter to avoid transparent barewords.
This commit is contained in:
kperdlich 2022-02-18 23:07:43 +01:00 committed by Andreas Kling
parent 34825ad3d1
commit ad722a9f06

View file

@ -130,6 +130,8 @@ private:
m_is_first_in_command = false;
} else if (node->text().starts_with("-")) {
span.attributes.color = m_palette.syntax_preprocessor_statement();
} else {
span.attributes.color = m_palette.base_text();
}
}
virtual void visit(const AST::CastToCommand* node) override