Comments (1)
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 "{\"rule\":\"UPPERCASE_SENTENCE_START\",\"sentence\":\"^\\\\ *\\\\.\\\\.\\\\ +code-block::.*?$\"}"
results, after parsed twice, in this regex
^\ *\.\.\ +code-block::.*?$
that matches this string
".. code-block:: json\r\n\r\n {\r\n \"test\": 123\r\n }\r\n"
So either the regexp is wrong escaped or the server does apply the regex differently than i think
from ltex-ls.
Related Issues (20)
- Sending workspace/configuration requests to client without capability
- Checking "!}" or "?}" with LanguageTool premium server in French.
- Version 16.0.0 doesn't work with PASSIVE_VOICE
- What is the default value of `LTEX_GLOBAL_STORAGE_PATH`? HOT 3
- language selection via \documentclass[german]{article} and similar
- ltex with html: Within source tag no html check
- Markdown inline footnotes
- `JAVA_HOME is not defined correctly`
- Add text (.txt) files support HOT 1
- Linux binary archive changes destination owner when extracted
- High memory usage HOT 1
- StringIndexOutOfBoundsException HOT 1
- How to set Ltex language in vim
- "diff" part of verbose commits should be ignored
- Where are the disabled rules by quick fix? How to undo them? HOT 1
- How can I disable spell checking, keeping only grammar rules
- Neovim: No diagnostic highlighting while in insert mode, only in normal mode. How do I change this?
- Multi-file projects
- Add rule for missing backslash in Greek symbols.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ltex-ls.