Browse Source

Shell: Use an opaque default color for BarewordLiteral

Use an opaque default color for BarewordLiteral in
Syntax Highlighter to avoid transparent barewords.
kperdlich 3 years ago
parent
commit
ad722a9f06
1 changed files with 2 additions and 0 deletions
  1. 2 0
      Userland/Shell/SyntaxHighlighter.cpp

+ 2 - 0
Userland/Shell/SyntaxHighlighter.cpp

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