Skip to content

Commit

Permalink
Merge pull request #468 from gandulio/master
Browse files Browse the repository at this point in the history
Reason/OCaml syntax support for code blocks
  • Loading branch information
felixhao28 authored Sep 15, 2017
2 parents 0d53525 + e74d047 commit b957ccd
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions Markdown.sublime-syntax
Original file line number Diff line number Diff line change
Expand Up @@ -449,6 +449,8 @@ contexts:
- include: fenced-clojure
- include: fenced-go
- include: fenced-kotlin
- include: fenced-ocaml
- include: fenced-reason
- include: fenced-undefined
fenced-coffee:
- match: '^(\s*[`~]{3,})\s*(coffee|cjsx)\s*$'
Expand Down Expand Up @@ -513,6 +515,13 @@ contexts:
- match: ^(\1)\n
pop: true
- include: scope:source.lua
fenced-ocaml:
- match: '^(\s*[`~]{3,})\s*(ocaml)\s*$'
push:
- meta_scope: markup.raw.block.markdown markup.raw.block.fenced.markdown
- match: ^(\1)\n
pop: true
- include: scope:source.ocaml
fenced-obj-c:
- match: '^(\s*[`~]{3,})\s*(obj(ective-)?c)\s*$'
push:
Expand Down Expand Up @@ -541,6 +550,13 @@ contexts:
- match: ^(\1)\n
pop: true
- include: scope:source.python
fenced-reason:
- match: '^(\s*[`~]{3,})\s*(re|reason)\s*$'
push:
- meta_scope: markup.raw.block.markdown markup.raw.block.fenced.markdown
- match: ^(\1)\n
pop: true
- include: scope:source.reason
fenced-ruby:
- match: '^(\s*[`~]{3,})\s*(ruby)\s*$'
push:
Expand Down

0 comments on commit b957ccd

Please sign in to comment.