소스 검색

Shell: Use an opaque default color for BarewordLiteral

Use an opaque default color for BarewordLiteral in
Syntax Highlighter to avoid transparent barewords.
kperdlich 3 년 전
부모
커밋
ad722a9f06
1개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  1. 2 0
      Userland/Shell/SyntaxHighlighter.cpp

+ 2 - 0
Userland/Shell/SyntaxHighlighter.cpp

@@ -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