atom-language-asciidoc
atom-language-asciidoc copied to clipboard
Don't spell-check in places that make no sense
Usually neither attribute definitions, e.g.
:imagesdir: figures
nor attribute usages, e.g.
{doctitle}
constitute proper words.
Same goes for macros that are often interpreted as a single word. I'm not sure how, but I guess there has to be a way to tell Atom to ignore certain ranges in the input file for spell-checking.
The key here is to define a "prose" scope. Then, you can tell the spellcheck to only run on that scope.
One of the things we're going to need to do is match paragraphs, which is where the bulk of the text is. Right now, we're not differentiating paragraphs from other blocks, so we can put a scope around the bulk of the text (and exclude others).
Currently, the spellcheck is run on source.asciidoc
, which is the entire AsciiDoc source text.
Duplicate of issue #5
Can I have steps to reproduce ?
With my configuration, I cannot reproduce:
- Spell-Check package without extra configuration
- a document which contains attributes references and attributes definitions
What I have missing to reproduce the bug ?
:smile: I have tried with linter-shellcheck
I enable the built in spellcheck plugin, input the following document:
:foobar: value
And this is what I see:
what is the status of this feature? thanks!