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 tofilterRanges
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