Skip to content

Commit 32cc396

Browse files
committed
Code Blocks: Add support for Prolog
1 parent 389cbe8 commit 32cc396

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,py,python,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,rake,rb,rbx,ruby,rusthon,scpt,sh,shell,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
@@ -772,6 +772,44 @@
772772
</dict>
773773
</array>
774774
</dict>
775+
<dict>
776+
<key>begin</key>
777+
<string>(^|\G)\s*([`~]{3,})\s*(prolog)\s*$</string>
778+
<key>beginCaptures</key>
779+
<dict>
780+
<key>2</key>
781+
<dict>
782+
<key>name</key>
783+
<string>punctuation.definition.raw.begin.markdown</string>
784+
</dict>
785+
<key>3</key>
786+
<dict>
787+
<key>name</key>
788+
<string>storage.type.language.markdown</string>
789+
</dict>
790+
</dict>
791+
<key>contentName</key>
792+
<string>source.prolog</string>
793+
<key>end</key>
794+
<string>(^|\G)\s*(\2)\n?</string>
795+
<key>endCaptures</key>
796+
<dict>
797+
<key>2</key>
798+
<dict>
799+
<key>name</key>
800+
<string>punctuation.definition.raw.end.markdown</string>
801+
</dict>
802+
</dict>
803+
<key>name</key>
804+
<string>markup.raw.block.prolog</string>
805+
<key>patterns</key>
806+
<array>
807+
<dict>
808+
<key>include</key>
809+
<string>source.prolog</string>
810+
</dict>
811+
</array>
812+
</dict>
775813
<dict>
776814
<key>begin</key>
777815
<string>(^|\G)\s*([`~]{3,})\s*(ruby|jruby|macruby|rake|rb|rbx)\s*$</string>

0 commit comments

Comments
 (0)