Skip to content

Commit

Permalink
Add d2
Browse files Browse the repository at this point in the history
  • Loading branch information
SandaruKasa committed May 6, 2024
1 parent 9d156e1 commit 6c3acd3
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
5 changes: 5 additions & 0 deletions languages.json
Original file line number Diff line number Diff line change
Expand Up @@ -324,6 +324,11 @@
"nested_comments": [["/+", "+/"]],
"extensions": ["d"]
},
"D2": {
"line_comment": ["#"],
"multi_line_comments": [["\\\"\\\"\\\"", "\\\"\\\"\\\""]],
"extensions": ["d2"]
},
"Daml": {
"name": "DAML",
"nested": true,
Expand Down
15 changes: 15 additions & 0 deletions tests/data/d2.d2
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 6c3acd3

Please sign in to comment.