Skip to content

Commit 60cb494

Browse files
authored
Merge pull request #29 from noniq/add-sparql
Code blocks: Add support for SPARQL
2 parents d872966 + f0eb799 commit 60cb494

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,vhd,vhdl,VHDL,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,sparql,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
@@ -1304,6 +1304,44 @@
13041304
</dict>
13051305
</array>
13061306
</dict>
1307+
<dict>
1308+
<key>begin</key>
1309+
<string>(^|\G)\s*([`~]{3,})\s*(sparql)\s*$</string>
1310+
<key>beginCaptures</key>
1311+
<dict>
1312+
<key>2</key>
1313+
<dict>
1314+
<key>name</key>
1315+
<string>punctuation.definition.raw.begin.markdown</string>
1316+
</dict>
1317+
<key>3</key>
1318+
<dict>
1319+
<key>name</key>
1320+
<string>storage.type.language.markdown</string>
1321+
</dict>
1322+
</dict>
1323+
<key>contentName</key>
1324+
<string>source.sparql</string>
1325+
<key>end</key>
1326+
<string>(^|\G)\s*(\2)\n?</string>
1327+
<key>endCaptures</key>
1328+
<dict>
1329+
<key>2</key>
1330+
<dict>
1331+
<key>name</key>
1332+
<string>punctuation.definition.raw.end.markdown</string>
1333+
</dict>
1334+
</dict>
1335+
<key>name</key>
1336+
<string>markup.raw.block.sparql</string>
1337+
<key>patterns</key>
1338+
<array>
1339+
<dict>
1340+
<key>include</key>
1341+
<string>source.sparql</string>
1342+
</dict>
1343+
</array>
1344+
</dict>
13071345
<dict>
13081346
<key>begin</key>
13091347
<string>(^|\G)\s*([`~]{3,})\s*(sql)\s*$</string>

0 commit comments

Comments
 (0)