Skip to content
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

Code syntax highlighting for incorrectly indented code blocks #3

Open
marshallward opened this issue Jul 27, 2016 · 1 comment
Open
Labels

Comments

@marshallward
Copy link
Owner

marshallward commented Jul 27, 2016

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.

@anntzer
Copy link
Contributor

anntzer commented Jan 31, 2018

A similar case:
screenshot_20180130_221922

will look into it...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants