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'^```'),