vim-restructuredtext icon indicating copy to clipboard operation
vim-restructuredtext copied to clipboard

Code syntax highlighting for incorrectly indented code blocks

Open marshallward opened this issue 9 years ago • 1 comments

Code blocks which are correctly formatted are also correctly syntax highlighted, but incorrect blocks are also being highlighted. For example, in the following

1. Bullet point text

   .. code:: c

   int main(void) {}

2. More bullet point text

the C code should be indented if it to be considered (e.g. aligned to the code label) if it is to be formatted as inside the code block, but the syntax file is incorrecting highlighting the C code as if it were a valid indent. Most docutils would correctly parse this as an empty code block.

marshallward avatar Jul 27 '16 03:07 marshallward

A similar case: screenshot_20180130_221922

will look into it...

anntzer avatar Jan 31 '18 06:01 anntzer