Skip to content

Offline, privacy-first grammar checker. Fast, open-source, Rust-powered

Revert "feat(spans-visual): mark unlintable spans as red"

Grant Lemons2e97afe753c1
diff --git a/harper-cli/src/main.rs b/harper-cli/src/main.rs
index 8a99951d8..c8f77e465 100644
--- a/harper-cli/src/main.rs
+++ b/harper-cli/src/main.rs
@@ -8,7 +8,7 @@ use clap::Parser;
use harper_comments::CommentParser;
use harper_core::linting::{LintGroup, LintGroupConfig, Linter};
use harper_core::parsers::{Markdown, Typst};
-use harper_core::{remove_overlaps, Dictionary, Document, FstDictionary, TokenKind};
+use harper_core::{remove_overlaps, Dictionary, Document, FstDictionary};
#[derive(Debug, Parser)]
enum Args {
@@ -100,7 +100,6 @@ fn main() -> anyhow::Result<()> {
let primary_color = Color::Blue;
let secondary_color = Color::Magenta;
- let unlintable_color = Color::Red;
let filename = file
.file_name()
.map(|s| s.to_string_lossy().into())
@@ -117,11 +116,7 @@ fn main() -> anyhow::Result<()> {
report_builder = report_builder.with_label(
Label::new((&filename, token.span.into()))
.with_message(format!("[{}, {})", token.span.start, token.span.end))
- .with_color(if matches!(token.kind, TokenKind::Unlintable) {
- unlintable_color
- } else {
- color
- }),
+ .with_color(color),
);
// Alternate colors so spans are clear