mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-28 04:23:32 +01:00
Fixes #18530
This commit is contained in:
@@ -126,6 +126,10 @@
|
||||
<key>include</key>
|
||||
<string>#fenced_code_block_c</string>
|
||||
</dict>
|
||||
<dict>
|
||||
<key>include</key>
|
||||
<string>#fenced_code_block_cpp</string>
|
||||
</dict>
|
||||
<dict>
|
||||
<key>include</key>
|
||||
<string>#fenced_code_block_diff</string>
|
||||
@@ -1560,7 +1564,6 @@
|
||||
<string>punctuation.definition.markdown</string>
|
||||
</dict>
|
||||
</dict>
|
||||
|
||||
<key>patterns</key>
|
||||
<array>
|
||||
<dict>
|
||||
@@ -1578,6 +1581,57 @@
|
||||
</dict>
|
||||
</array>
|
||||
</dict>
|
||||
<key>fenced_code_block_cpp</key>
|
||||
<dict>
|
||||
<key>begin</key>
|
||||
<string>(^|\G)(\s*)([`~]{3,})\s*((cpp|c\+\+|cxx)(\s+.*)?$)</string>
|
||||
<key>name</key>
|
||||
<string>markup.fenced_code.block.markdown</string>
|
||||
<key>end</key>
|
||||
<string>(^|\G)(\2|\s{0,3})(\3)\s*$</string>
|
||||
<key>beginCaptures</key>
|
||||
<dict>
|
||||
<key>3</key>
|
||||
<dict>
|
||||
<key>name</key>
|
||||
<string>punctuation.definition.markdown</string>
|
||||
</dict>
|
||||
<key>5</key>
|
||||
<dict>
|
||||
<key>name</key>
|
||||
<string>fenced_code.block.language</string>
|
||||
</dict>
|
||||
<key>6</key>
|
||||
<dict>
|
||||
<key>name</key>
|
||||
<string>fenced_code.block.language.attributes</string>
|
||||
</dict>
|
||||
</dict>
|
||||
<key>endCaptures</key>
|
||||
<dict>
|
||||
<key>3</key>
|
||||
<dict>
|
||||
<key>name</key>
|
||||
<string>punctuation.definition.markdown</string>
|
||||
</dict>
|
||||
</dict>
|
||||
<key>patterns</key>
|
||||
<array>
|
||||
<dict>
|
||||
<key>begin</key>
|
||||
<string>(^|\G)(\s*)(.*)</string>
|
||||
<key>while</key>
|
||||
<string>(^|\G)(?!\s*([`~]{3,})\s*$)</string>
|
||||
<key>patterns</key>
|
||||
<array>
|
||||
<dict>
|
||||
<key>include</key>
|
||||
<string>source.cpp</string>
|
||||
</dict>
|
||||
</array>
|
||||
</dict>
|
||||
</array>
|
||||
</dict>
|
||||
<key>fenced_code_block_diff</key>
|
||||
<dict>
|
||||
<key>begin</key>
|
||||
|
||||
Reference in New Issue
Block a user