From e74d0472363265a1bb9180c24d28eca7186d91bd Mon Sep 17 00:00:00 2001 From: Patrick Henning Date: Thu, 14 Sep 2017 08:47:13 -0700 Subject: [PATCH] Reason/OCaml syntax support for code blocks --- Markdown.sublime-syntax | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/Markdown.sublime-syntax b/Markdown.sublime-syntax index 4cf45f9e..d46ee090 100644 --- a/Markdown.sublime-syntax +++ b/Markdown.sublime-syntax @@ -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*$' @@ -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: @@ -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: