This commit is contained in:
SandaruKasa 2024-08-16 15:06:11 +03:00 committed by GitHub
parent 79b6a9055d
commit 3a352847e2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 21 additions and 0 deletions

View File

@ -376,6 +376,7 @@ Cuda
CUE
Cython
D
D2
DAML
Dart
DeviceTree

View File

@ -361,6 +361,11 @@
"nested_comments": [["/+", "+/"]],
"extensions": ["d"]
},
"D2": {
"line_comment": ["#"],
"multi_line_comments": [["\\\"\\\"\\\"", "\\\"\\\"\\\""]],
"extensions": ["d2"]
},
"Daml": {
"name": "DAML",
"nested": true,

15
tests/data/d2.d2 Normal file
View File

@ -0,0 +1,15 @@
# 15 lines 4 code 6 comments 5 blanks
# Comments start with a hash character and continue until the next newline or EOF.
x -> y
x -> y # I am at the end
'#x' -> "#y"
"""
This is a
block comment
"""
y -> z