ltex-ls icon indicating copy to clipboard operation
ltex-ls copied to clipboard

restructuredText ltex.hiddenFalsePositive

Open koeppe-at-pdtec opened this issue 10 months ago • 3 comments

Hello,

i want to use ltex on rst files in vscode. As it lacks some linting capabilities for rst i want to add them myself to remove false positives.

i have a .vscode\ltex.hiddenFalsePositives.en-US.txt file that works for me except I fail to match code blocks via regex. Actually i even fail to match the first line. I'm out of clues what i'am doing wrong.

here is my example. example.zip

.vscode\ltex.hiddenFalsePositives.en-US.txt The last line does not match

{"rule":"DOUBLE_PUNCTUATION","sentence":"(\\.\\./)+"}
{"rule":"MORFOLOGIK_RULE_EN_US","sentence":"^\\ *?\\.\\.\\ +\\w+\\:\\:.*?$"}
{"rule":"MORFOLOGIK_RULE_EN_US","sentence":"(\\w+_)+\\w+"}
{"rule":"UPPERCASE_SENTENCE_START","sentence":"(\\w+_)+\\w+"}
{"rule":"MORFOLOGIK_RULE_EN_US","sentence":"\\|\\w+\\|"}
{"rule":"UPPERCASE_SENTENCE_START","sentence":"^\\ *\\.\\.\\ +code-block::.*?$"}

test.rst

.. code-block:: json

    {
        "test": 123
    }

koeppe-at-pdtec avatar Apr 16 '24 08:04 koeppe-at-pdtec