mirror of
https://github.com/Microsoft/vscode
synced 2024-08-27 21:09:43 +00:00
Add scss and pug to markdown fenced codeblock syntax highlighting Fixes #28382
This commit is contained in:
parent
43abcc20b3
commit
32566fd1f1
|
@ -32,13 +32,15 @@ const languages = [
|
|||
{ name: 'git_rebase', identifiers: ['git-rebase-todo'], source: 'text.git-rebase' },
|
||||
{ name: 'go', identifiers: ['go', 'golang'], source: 'source.go' },
|
||||
{ name: 'groovy', identifiers: ['groovy', 'gvy'], source: 'source.groovy' },
|
||||
{ name: 'jade', identifiers: ['jade'], source: 'text.jade' },
|
||||
{ name: 'jade', identifiers: ['jade', 'pug'], source: 'text.jade' },
|
||||
|
||||
{ name: 'js', identifiers: ['js', 'jsx', 'javascript', 'es6', 'mjs'], source: 'source.js' },
|
||||
{ name: 'js_regexp', identifiers: ['regexp'], source: 'source.js.regexp' },
|
||||
{ name: 'json', identifiers: ['json', 'sublime-settings', 'sublime-menu', 'sublime-keymap', 'sublime-mousemap', 'sublime-theme', 'sublime-build', 'sublime-project', 'sublime-completions'], source: 'source.json' },
|
||||
{ name: 'less', identifiers: ['less'], source: 'source.css.less' },
|
||||
{ name: 'objc', identifiers: ['objectivec', 'objective-c', 'mm', 'objc', 'obj-c', 'm', 'h'], source: 'source.objc' },
|
||||
{ name: 'scss', identifiers: ['scss'], source: 'source.css.scss' },
|
||||
|
||||
{ name: 'perl6', identifiers: ['perl6', 'p6', 'pl6', 'pm6', 'nqp'], source: 'source.perl.6' },
|
||||
{ name: 'powershell', identifiers: ['powershell', 'ps1', 'psm1', 'psd1'], source: 'source.powershell' },
|
||||
{ name: 'python', identifiers: ['python', 'py', 'py3', 'rpy', 'pyw', 'cpy', 'SConstruct', 'Sconstruct', 'sconstruct', 'SConscript', 'gyp', 'gypi'], source: 'source.python' },
|
||||
|
|
|
@ -174,6 +174,10 @@
|
|||
<key>include</key>
|
||||
<string>#fenced_code_block_objc</string>
|
||||
</dict>
|
||||
<dict>
|
||||
<key>include</key>
|
||||
<string>#fenced_code_block_scss</string>
|
||||
</dict>
|
||||
<dict>
|
||||
<key>include</key>
|
||||
<string>#fenced_code_block_perl6</string>
|
||||
|
@ -1914,7 +1918,7 @@
|
|||
<key>fenced_code_block_jade</key>
|
||||
<dict>
|
||||
<key>begin</key>
|
||||
<string>(^|\G)(\s*)([`~]{3,})\s*((jade)(\s+[^`~]*)?$)</string>
|
||||
<string>(^|\G)(\s*)([`~]{3,})\s*((jade|pug)(\s+[^`~]*)?$)</string>
|
||||
<key>name</key>
|
||||
<string>markup.fenced_code.block.markdown</string>
|
||||
<key>end</key>
|
||||
|
@ -2217,6 +2221,57 @@
|
|||
</dict>
|
||||
</array>
|
||||
</dict>
|
||||
<key>fenced_code_block_scss</key>
|
||||
<dict>
|
||||
<key>begin</key>
|
||||
<string>(^|\G)(\s*)([`~]{3,})\s*((scss)(\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.css.scss</string>
|
||||
</dict>
|
||||
</array>
|
||||
</dict>
|
||||
</array>
|
||||
</dict>
|
||||
<key>fenced_code_block_perl6</key>
|
||||
<dict>
|
||||
<key>begin</key>
|
||||
|
|
|
@ -416,7 +416,7 @@
|
|||
<key>name</key>
|
||||
<string>markup.fenced_code.block.markdown</string>
|
||||
<key>begin</key>
|
||||
<string>(^|\G)(\s*)([`~]{3,})\s*(?=[^`~]*)?$</string>
|
||||
<string>(^|\G)(\s*)([`~]{3,})\s*(?=([^`~]*)?$)</string>
|
||||
<key>end</key>
|
||||
<string>(^|\G)(\2|\s{0,3})(\3)\s*$</string>
|
||||
<key>beginCaptures</key>
|
||||
|
@ -1118,7 +1118,7 @@
|
|||
</dict>
|
||||
</dict>
|
||||
<key>match</key>
|
||||
<string>(\[)((?<square>[^\[\]\\]|\\.|\[\g<square>*+\])*+)(\])[ ]?(\[)([^\]]*+)(\])</string>
|
||||
<string>(\[)((?<square>[^\[\]\\]|\\.|\[\g<square>*+\])*+)(\])(\[)([^\]]*+)(\])</string>
|
||||
<key>name</key>
|
||||
<string>meta.link.reference.markdown</string>
|
||||
</dict>
|
||||
|
|
Loading…
Reference in a new issue