Offline, privacy-first grammar checker. Fast, open-source, Rust-powered
fix: updated docs + fixed improper `Span` initialization
Elijah Potter87eb4d990b5c
diff --git a/README.md b/README.mdindex 7e9ade36c..41d9c9952 100644--- a/README.md+++ b/README.md@@ -31,3 +31,8 @@ Harper is even small enough to load via [WebAssembly.](https://writewithharper.cIf you want to use Harper on your machine, you will want to look at the [documentation for`harper-ls`](./harper-ls/README.md), the Language Server Protocol implementation.++## Performance Issues++We consider long lint times bugs.+If you encounter any significant performance issues, please create an issue on the topic.diff --git a/harper-core/src/parsers/markdown.rs b/harper-core/src/parsers/markdown.rsindex 9f7aa5612..186be0d3c 100644--- a/harper-core/src/parsers/markdown.rs+++ b/harper-core/src/parsers/markdown.rs@@ -66,7 +66,7 @@ impl Parser for Markdown {if matches!(tag, Tag::CodeBlock(..)) {tokens.push(Token {- span: Span::new(traversed_chars, text.chars().count()),+ span: Span::new_with_len(traversed_chars, text.chars().count()),kind: TokenKind::Unlintable});continue;diff --git a/harper-ls/README.md b/harper-ls/README.mdindex cefa9373c..8c28f190f 100644--- a/harper-ls/README.md+++ b/harper-ls/README.md@@ -71,7 +71,9 @@ lspconfig.harper_ls.setup {long_sentences = true,repeated_words = true,spaces = true,- matcher = true+ matcher = true,+ correct_number_suffix = true,+ number_suffix_capitalization = true,}}},