Skip to content
This repository has been archived by the owner on Aug 7, 2023. It is now read-only.

Allowing linter-spell-latex to activate and to ignore most LaTeX syntax in spelling #42

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

mlangiu
Copy link

@mlangiu mlangiu commented Jan 10, 2020

Changed outdated getRanges method in LaTeX grammar to filterRanges and provided a more rigorous regex for excluding common LaTeX syntax elements.

Since the buffer is split into different ranges for spell checking we can still get false-positives, e.g., in \begin{footnotesize}, footnotesize may or may not be marked as a spelling error depending on whether it is in the same range as \begin{ and }.
However, this PR greatly reduces these false-positives compared to before

Changed outdated getRanges method in LaTeX grammar to filterRanges and provided a more rigorous regex for excluding common LaTeX syntax elements.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant