{"action":"opened","issue":{"url":"https://api.github.com/repos/Microsoft/vscode/issues/18530","repository_url":"https://api.github.com/repos/Microsoft/vscode","labels_url":"https://api.github.com/repos/Microsoft/vscode/issues/18530/labels{/name}","comments_url":"https://api.github.com/repos/Microsoft/vscode/issues/18530/comments","events_url":"https://api.github.com/repos/Microsoft/vscode/issues/18530/events","html_url":"https://github.com/Microsoft/vscode/issues/18530","id":200737259,"number":18530,"title":"Markdown doesn't support ```c++ blocks","user":{"login":"kobalicek","id":6491301,"avatar_url":"https://avatars.githubusercontent.com/u/6491301?v=3","gravatar_id":"","url":"https://api.github.com/users/kobalicek","html_url":"https://github.com/kobalicek","followers_url":"https://api.github.com/users/kobalicek/followers","following_url":"https://api.github.com/users/kobalicek/following{/other_user}","gists_url":"https://api.github.com/users/kobalicek/gists{/gist_id}","starred_url":"https://api.github.com/users/kobalicek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kobalicek/subscriptions","organizations_url":"https://api.github.com/users/kobalicek/orgs","repos_url":"https://api.github.com/users/kobalicek/repos","events_url":"https://api.github.com/users/kobalicek/events{/privacy}","received_events_url":"https://api.github.com/users/kobalicek/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-01-13T21:38:37Z","updated_at":"2017-01-13T21:38:37Z","closed_at":null,"body":"- VSCode Version: nightly\r\n- OS Version: linux\r\n\r\nSteps to Reproduce:\r\n\r\nCreate a markdown document and put a c++ code section into it, starting with ```c++. VSCode doesn't highlight it, because there is no c++ match in markdown.tmLanguage.\r\n\r\nI suppose to add the following (or something similar, I don't know how that file is created):\r\n\r\n```xml\r\n<key>fenced_code_block_cpp</key>\r\n\t\t\t\t<dict>\r\n\t\t\t\t\t<key>begin</key>\r\n\t\t\t\t\t<string>(^|\\G)(\\s*)([`~]{3,})\\s*((cpp|c++|cxx)(\\s+.*)?$)</string>\r\n\t\t\t\t\t<key>name</key>\r\n\t\t\t\t\t<string>markup.fenced_code.block.markdown</string>\r\n\t\t\t\t\t<key>end</key>\r\n\t\t\t\t\t<string>(^|\\G)(\\2|\\s{0,3})(\\3)\\s*$</string>\r\n\t\t\t\t\t<key>beginCaptures</key>\r\n\t\t\t\t\t<dict>\r\n\t\t\t\t\t\t<key>3</key>\r\n\t\t\t\t\t\t<dict>\r\n\t\t\t\t\t\t\t<key>name</key>\r\n\t\t\t\t\t\t\t<string>punctuation.definition.markdown</string>\r\n\t\t\t\t\t\t</dict>\r\n\t\t\t\t\t\t<key>5</key>\r\n\t\t\t\t\t\t<dict>\r\n\t\t\t\t\t\t\t<key>name</key>\r\n\t\t\t\t\t\t\t<string>fenced_code.block.language</string>\r\n\t\t\t\t\t\t</dict>\r\n\t\t\t\t\t\t<key>6</key>\r\n\t\t\t\t\t\t<dict>\r\n\t\t\t\t\t\t\t<key>name</key>\r\n\t\t\t\t\t\t\t<string>fenced_code.block.language.attributes</string>\r\n\t\t\t\t\t\t</dict>\r\n\t\t\t\t\t</dict>\r\n\t\t\t\t\t<key>endCaptures</key>\r\n\t\t\t\t\t<dict>\r\n\t\t\t\t\t\t<key>3</key>\r\n\t\t\t\t\t\t<dict>\r\n\t\t\t\t\t\t\t<key>name</key>\r\n\t\t\t\t\t\t\t<string>punctuation.definition.markdown</string>\r\n\t\t\t\t\t\t</dict>\r\n\t\t\t\t\t</dict>\r\n\r\n\t\t\t\t\t<key>patterns</key>\r\n\t\t\t\t\t<array>\r\n\t\t\t\t\t\t<dict>\r\n\t\t\t\t\t\t\t<key>begin</key>\r\n\t\t\t\t\t\t\t<string>(^|\\G)(\\s*)(.*)</string>\r\n\t\t\t\t\t\t\t<key>while</key>\r\n\t\t\t\t\t\t\t<string>(^|\\G)(?!\\s*([`~]{3,})\\s*$)</string>\r\n\t\t\t\t\t\t\t<key>patterns</key>\r\n\t\t\t\t\t\t\t<array>\r\n\t\t\t\t\t\t\t\t<dict>\r\n\t\t\t\t\t\t\t\t\t<key>include</key>\r\n\t\t\t\t\t\t\t\t\t<string>source.cpp</string>\r\n\t\t\t\t\t\t\t\t</dict>\r\n\t\t\t\t\t\t\t</array>\r\n\t\t\t\t\t\t</dict>\r\n\t\t\t\t\t</array>\r\n\t\t\t\t</dict>\r\n```"}}
{"actor":{"display_login":"kobalicek"}}