Skip to content

Commit 0237b4a

Browse files
committed
Basic support for Literate Haskell
1 parent 7c4ff9c commit 0237b4a

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

languages.toml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1591,6 +1591,18 @@ indent = { tab-width = 2, unit = " " }
15911591
name = "haskell-persistent"
15921592
source = { git = "https://github.com/MercuryTechnologies/tree-sitter-haskell-persistent", rev = "58a6ccfd56d9f1de8fb9f77e6c42151f8f0d0f3d" }
15931593

1594+
[[language]]
1595+
name = "haskell-literate"
1596+
scope = "source.haskell-literate"
1597+
injection-regex = "lhs"
1598+
file-types = ["lhs"]
1599+
roots = ["Setup.hs", "stack.yaml", "cabal.project", "hie.yaml"]
1600+
shebangs = ["runhaskell", "stack"]
1601+
comment-token = "--"
1602+
block-comment-tokens = { start = "{-", end = "-}" }
1603+
language-servers = [ "haskell-language-server" ]
1604+
indent = { tab-width = 2, unit = " " }
1605+
15941606
[[language]]
15951607
name = "purescript"
15961608
scope = "source.purescript"

0 commit comments

Comments
 (0)