support haskell + tut

--HG--
branch : pmacs2
This commit is contained in:
Erik Osheim 2019-05-06 00:47:27 -04:00
parent baacddfa88
commit a76a1ee600
1 changed files with 3 additions and 0 deletions

View File

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