Add support for Dhall lang (#532)

This commit is contained in:
Alexandru Macovei 2020-05-19 18:55:38 +03:00 committed by GitHub
parent 89f1fde9d3
commit e88eabe7d9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 24 additions and 0 deletions

View file

@ -306,6 +306,7 @@ Css
D
Dart
DeviceTree
Dhall
Dockerfile
DotNetResource
DreamMaker

View file

@ -270,6 +270,13 @@
"quotes": [["\\\"", "\\\""]],
"extensions": ["dts", "dtsi"]
},
"Dhall":{
"nested": true,
"line_comment": ["--"],
"multi_line_comments": [["{-", "-}"]],
"quotes": [["\\\"", "\\\""], ["''", "''"]],
"extensions": ["dhall"]
},
"DreamMaker": {
"name": "Dream Maker",
"line_comment": ["//"],

16
tests/data/dhall.dhall Normal file
View file

@ -0,0 +1,16 @@
-- 16 lines 9 code 5 comments 2 blanks
{- A comment within the interior of a multi-line literal counts as part of the
literal
-}
''
-- Hello
{- world -}
''
{ some = "thing"
, keys = ["can"
, "have",
-- wait for it
"lists"]
}