ZainChen / vscode-json

Json for Visual Studio Code
https://marketplace.visualstudio.com/items?itemName=ZainChen.json
MIT License
112 stars 39 forks source link

json codeblock in rst file not recognized #1

Open langebe opened 5 years ago

langebe commented 5 years ago

I have a .rst that is part of a documentation that contains the following line before the json code: .. code-block:: JSON

Syntax checker is not working in this situation.

Would it be possible to add support for this? If necessary I can provide an example file.

I think it should be okay to search for code-block:: JSON or code-block: JSON and treat the code starting from the code from the next { until the ending } as json.

ZainChen commented 5 years ago

Hello, this feature you said is great, I hope to provide sample files. thank you!

langebe commented 5 years ago

Hello ZainChen, sorry for responding so late, totally missed your reply on this! Attached is a small example file. jsontest.txt

This is about code-block directive support for Sphinx to be more precise. https://www.sphinx-doc.org/en/1.5/markup/code.html

ZainChen commented 5 years ago

Thank you for your help, this feature has been included in the development plan.^_^