Skip to content

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

docs(ls): update ignore comments section

Matthew Espinofdf6b9261695
diff --git a/packages/web/src/routes/docs/integrations/language-server/+page.md b/packages/web/src/routes/docs/integrations/language-server/+page.md
index 883acc297..97a68fe0a 100644
--- a/packages/web/src/routes/docs/integrations/language-server/+page.md
+++ b/packages/web/src/routes/docs/integrations/language-server/+page.md
@@ -129,8 +129,14 @@ We _do_ take pull requests or issues for adding words to the static dictionary.
- `harper: ignore`
- `spellcheck:ignore`
- `spellcheck: ignore`
+- `spell-checker:ignore`
+- `spell-checker: ignore`
+- `spellchecker:ignore`
+- `spellchecker: ignore`
+
+You may notice that the last four ignore comments are the same with some of CSpell's ignore comments. That is intentional in case users wish to use Harper and CSpell together.
-So "spellcheckd" and other spelling or grammar errors will not be flagged in any of the following comments:
+Here's an example of how these comments can be used:
```js
// harper:ignore this line will not be spellcheckd
@@ -143,14 +149,7 @@ function sample() {
}
```
-For CSpell compatibility, we also support these ignore comments:
-
-- `cSpell:ignore`
-- `cSpell: ignore`
-- `spell-checker:ignore`
-- `spell-checker: ignore`
-- `spellchecker:ignore`
-- `spellchecker: ignore`
+In the above example, "spellcheckd", "this this", and other spelling or grammar errors will not be flagged.
## Configuration