diff --git a/literate-haskell-configuration.json b/literate-haskell-configuration.json new file mode 100644 index 0000000..5db0970 --- /dev/null +++ b/literate-haskell-configuration.json @@ -0,0 +1,29 @@ +{ + "comments": { + "lineComment": "%", + "blockComment": ["{-", "-}"] + }, + "brackets": [ + ["{", "}"], + ["[", "]"], + ["(", ")"] + ], + "autoClosingPairs": [ + { "open": "{", "close": "}" }, + { "open": "[", "close": "]" }, + { "open": "(", "close": ")" }, + { "open": "\"", "close": "\"", "notIn": ["string"] }, + { "open": "`", "close": "`", "notIn": ["string", "comment"] } + ], + "surroundingPairs": [ + ["{", "}"], + ["[", "]"], + ["(", ")"], + ["'", "'"], + ["\"", "\""], + ["`", "`"] + ], + "folding": { + "offSide": true + } +} diff --git a/package.json b/package.json index 811155d..f0d1401 100644 --- a/package.json +++ b/package.json @@ -80,7 +80,7 @@ "extensions": [ ".lhs" ], - "configuration": "./haskell-configuration.json" + "configuration": "./literate-haskell-configuration.json" } ], "grammars": [