Skip to content

Commit f5beaca

Browse files
author
Albin a12l Otterhäll
committed
Add syntax highlighting for Haskell
highlights.scm is copied direct from the nvim-treesitter repository with the latest commit that touched it being 188b1a6d01fd9bcf04bf2bc932d611809b154acc.
1 parent 6503953 commit f5beaca

5 files changed

Lines changed: 477 additions & 0 deletions

File tree

data/config.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,9 @@ lsp.roots = ["melos.yaml", "pubspec.yaml"]
144144
[filetypes.graphql]
145145
extensions = ["graphql"]
146146

147+
[filetypes.haskell]
148+
extensions = ["hs"]
149+
147150
[filetypes.json]
148151
extensions = ["json"]
149152

data/config_tests/valid-ftypes.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@ lsp.roots = ["melos.yaml", "pubspec.yaml"]
1212
[graphql]
1313
extensions = ["graphql"]
1414

15+
[haskell]
16+
extensions = ["hs"]
17+
1518
[json]
1619
extensions = ["json"]
1720

data/config_tests/valid/all-inline.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,9 @@ lsp.roots = ["melos.yaml", "pubspec.yaml"]
7979
[filetypes.graphql]
8080
extensions = ["graphql"]
8181

82+
[filetypes.haskell]
83+
extensions = ["hs"]
84+
8285
[filetypes.json]
8386
extensions = ["json"]
8487

data/lib/ftype-comment-chars.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ bash #
22
c //
33
dart //
44
graphql #
5+
haskell --
56
just #
67
make #
78
plumbingrules #

0 commit comments

Comments
 (0)