Skip to content

Commit a1fff64

Browse files
committed
Code Blocks: Add support for VHDL
1 parent 8b545ba commit a1fff64

File tree

2 files changed

+39
-1
lines changed

2 files changed

+39
-1
lines changed

Snippets/Code block.tmSnippet

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<plist version="1.0">
44
<dict>
55
<key>content</key>
6-
<string>\`\`\`${1|ada,adb,ads,antlr,applescript,bash,bib,c,c#,c++,cmake,cpp,csharp,css,dot,fish,g4,go,groovy,grt,gtpl,gv,gvy,haskell,hs,html,inc,java,javascript,jruby,js,json,latex,lua,macruby,make,Makefile,Markdown,matlab,md,node,ocaml,octave,perl,php,pl,prolog,py,python,r,R,rake,rb,rbx,ruby,rusthon,scpt,sh,shell,sql,swift,tcl,Tcl,tex,xhtml,yaml,yml,zsh|}
6+
<string>\`\`\`${1|ada,adb,ads,antlr,applescript,bash,bib,c,c#,c++,cmake,cpp,csharp,css,dot,fish,g4,go,groovy,grt,gtpl,gv,gvy,haskell,hs,html,inc,java,javascript,jruby,js,json,latex,lua,macruby,make,Makefile,Markdown,matlab,md,node,ocaml,octave,perl,php,pl,prolog,py,python,r,R,rake,rb,rbx,ruby,rusthon,scpt,sh,shell,sql,swift,tcl,Tcl,tex,vhd,vhdl,VHDL,xhtml,yaml,yml,zsh|}
77
$0
88
\`\`</string>
99
<key>name</key>

Syntaxes/Markdown (GitHub).tmLanguage

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1342,6 +1342,44 @@
13421342
</dict>
13431343
</array>
13441344
</dict>
1345+
<dict>
1346+
<key>begin</key>
1347+
<string>(^|\G)\s*([`~]{3,})\s*(vhdl?|VHDL)\s*$</string>
1348+
<key>beginCaptures</key>
1349+
<dict>
1350+
<key>2</key>
1351+
<dict>
1352+
<key>name</key>
1353+
<string>punctuation.definition.raw.begin.markdown</string>
1354+
</dict>
1355+
<key>3</key>
1356+
<dict>
1357+
<key>name</key>
1358+
<string>storage.type.language.markdown</string>
1359+
</dict>
1360+
</dict>
1361+
<key>contentName</key>
1362+
<string>source.vhdl</string>
1363+
<key>end</key>
1364+
<string>(^|\G)\s*(\2)\n?</string>
1365+
<key>endCaptures</key>
1366+
<dict>
1367+
<key>2</key>
1368+
<dict>
1369+
<key>name</key>
1370+
<string>punctuation.definition.raw.end.markdown</string>
1371+
</dict>
1372+
</dict>
1373+
<key>name</key>
1374+
<string>markup.raw.block.vhdl</string>
1375+
<key>patterns</key>
1376+
<array>
1377+
<dict>
1378+
<key>include</key>
1379+
<string>source.vhdl</string>
1380+
</dict>
1381+
</array>
1382+
</dict>
13451383
<dict>
13461384
<key>begin</key>
13471385
<string>(^|\G)\s*([`~]{3,})\s*(ya?ml)\s*$</string>

0 commit comments

Comments
 (0)