Skip to content

Commit

Permalink
Add php fenced code block syntax support
Browse files Browse the repository at this point in the history
  • Loading branch information
rebornix committed Jun 20, 2016
1 parent 7438f31 commit bd395e1
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions syntaxes/markdown.tmLanguage
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,10 @@
<key>include</key>
<string>#fenced_code_block_ruby</string>
</dict>
<dict>
<key>include</key>
<string>#fenced_code_block_php</string>
</dict>
<dict>
<key>include</key>
<string>#fenced_code_block_sql</string>
Expand Down Expand Up @@ -658,6 +662,22 @@
</dict>
</array>
</dict>
<key>fenced_code_block_php</key>
<dict>
<key>begin</key>
<string>(^|\G)\s*([`~]{3,})\s*(php|php3|php4|php5|phpt|phtml|aw|ctp)\s*$</string>
<key>name</key>
<string>markup.fenced_code.block.markdown</string>
<key>end</key>
<string>(^|\G)(\2)\n</string>
<key>patterns</key>
<array>
<dict>
<key>include</key>
<string>text.html.php</string>
</dict>
</array>
</dict>
<key>fenced_code_block_sql</key>
<dict>
<key>begin</key>
Expand Down

0 comments on commit bd395e1

Please sign in to comment.