Skip to content

Commit 37f69c5

Browse files
committed
Code Blocks: Add support for SQL
1 parent 6cd682c commit 37f69c5

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,swift,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,tex,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
@@ -1228,6 +1228,44 @@
12281228
</dict>
12291229
</array>
12301230
</dict>
1231+
<dict>
1232+
<key>begin</key>
1233+
<string>(^|\G)\s*([`~]{3,})\s*(sql)\s*$</string>
1234+
<key>beginCaptures</key>
1235+
<dict>
1236+
<key>2</key>
1237+
<dict>
1238+
<key>name</key>
1239+
<string>punctuation.definition.raw.begin.markdown</string>
1240+
</dict>
1241+
<key>3</key>
1242+
<dict>
1243+
<key>name</key>
1244+
<string>storage.type.language.markdown</string>
1245+
</dict>
1246+
</dict>
1247+
<key>contentName</key>
1248+
<string>source.sql</string>
1249+
<key>end</key>
1250+
<string>(^|\G)\s*(\2)\n?</string>
1251+
<key>endCaptures</key>
1252+
<dict>
1253+
<key>2</key>
1254+
<dict>
1255+
<key>name</key>
1256+
<string>punctuation.definition.raw.end.markdown</string>
1257+
</dict>
1258+
</dict>
1259+
<key>name</key>
1260+
<string>markup.raw.block.sql</string>
1261+
<key>patterns</key>
1262+
<array>
1263+
<dict>
1264+
<key>include</key>
1265+
<string>source.sql</string>
1266+
</dict>
1267+
</array>
1268+
</dict>
12311269
<dict>
12321270
<key>begin</key>
12331271
<string>(^|\G)\s*([`~]{3,})\s*(swift)\s*$</string>

0 commit comments

Comments
 (0)