-
-
Notifications
You must be signed in to change notification settings - Fork 36
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
restructuredText ltex.hiddenFalsePositive #301
Comments
Might be a bug: the request to the LS is Params: {
"command": "_ltex.checkDocument",
"arguments": [
{
"uri": "file:///c%3A/pdtec/gitlab/simdata-manager-reference-manual/test.rst",
"codeLanguageId": "restructuredtext",
"text": ".. code-block:: json\r\n\r\n {\r\n \"test\": 123\r\n }\r\n"
}
]
} the configuration request result (only the important part): "hiddenFalsePositives": {
"en-US": [
"{\"rule\":\"DOUBLE_PUNCTUATION\",\"sentence\":\"(\\\\.\\\\./)+\"}",
"{\"rule\":\"MORFOLOGIK_RULE_EN_US\",\"sentence\":\"(\\\\w+_)+\\\\w+\"}",
"{\"rule\":\"MORFOLOGIK_RULE_EN_US\",\"sentence\":\"\\\\|\\\\w+\\\\|\"}",
"{\"rule\":\"MORFOLOGIK_RULE_EN_US\",\"sentence\":\"^\\\\ *?\\\\.\\\\.\\\\ +\\\\w+\\\\:\\\\:.*?$\"}",
"{\"rule\":\"UPPERCASE_SENTENCE_START\",\"sentence\":\"(\\\\w+_)+\\\\w+\"}",
"{\"rule\":\"UPPERCASE_SENTENCE_START\",\"sentence\":\"^\\\\ *\\\\.\\\\.\\\\ +code-block::.*?$\"}"
], the rule results, after parsed twice, in this regex So either the regexp is wrong escaped or the server does apply the regex differently than i think |
Is this repo dead? I haven't seen any maintainers answering questions and the last commit was about a year ago... This is the exact problem I'm having but no one will answer issue threads. |
Hi @pickled-dict, i fear you are right. The owner activities across all of his projects is nearly zero. |
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
test.rst
The text was updated successfully, but these errors were encountered: