From a76a1ee600b71f3b6f3ba08ac26dedcd176ba59c Mon Sep 17 00:00:00 2001 From: Erik Osheim Date: Mon, 6 May 2019 00:47:27 -0400 Subject: [PATCH] support haskell + tut --HG-- branch : pmacs2 --- mode/markdown.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/mode/markdown.py b/mode/markdown.py index 5edf4d4..eeee30b 100644 --- a/mode/markdown.py +++ b/mode/markdown.py @@ -9,6 +9,7 @@ from mode.java import JavaGrammar from mode.javascript import JavascriptGrammar from mode.python import PythonGrammar from mode.scala import ScalaGrammar +from mode.haskell import HaskellGrammar from mode.sql import SqlGrammar from mode.xml import XMLGrammar @@ -52,6 +53,8 @@ MarkdownGrammar.rules = [ RegionRule('md.lang', r'^```java$', JavaGrammar, r'^```'), RegionRule('md.lang', r'^```python$', PythonGrammar, r'^```'), RegionRule('md.lang', r'^```scala$', ScalaGrammar, r'^```'), + RegionRule('md.lang', r'^```tut(?::.+)?$', ScalaGrammar, r'^```'), + RegionRule('md.lang', r'^```haskell$', HaskellGrammar, r'^```'), RegionRule('md.lang', r'^```sql$', SqlGrammar, r'^```'), RegionRule('md.lang', r'^```xml$', XMLGrammar, r'^```'),