reStructuredText highlighting issue
kechap opened this issue · comments
The reStructuredText highlighting is not working as expected.
As you can see in the following images when there is formatted text inside a paragraph or you just prepend whitespace the text is not getting highlighted.
I firstly thought this might be the desired behavior so I tested kate editor. The result is the following:
kate
qutepart
It seems like I've found the bug.
I'll pull updated syntax highlighting definitions from the upstream.
@kechap , could you please check the bug on current qutepart master?
@andreikop I tried the latest master but I am getting the same result.
Yes, I see
Snippet for further tests
.. This is a test
this is bold **bold text**
**bold text**
I think that the fix broke something else now. The styling is applied to other text also. See the following output
Snippet for tests
Here, **code-block** is the name of the directive. **html** is an argument telling that the code is in HTML format, **lineos** is an option telling to insert line number and finally after a blank line is the text to include.
Here, *code-block* is the name of the directive. *html* is an argument telling that the code is in HTML format, *lineos* is an option telling to insert line number and finally after a blank line is the text to include.
Here, ``code-block`` is the name of the directive. ``html`` is an argument telling that the code is in HTML format, ``lineos`` is an option telling to insert line number and finally after a blank line is the text to include.
This is independent bug which always existed. (Actually TODO)
I've fixed it. But only for binary version of the parser. (when C extension is used)