Skip to content

Commit

Permalink
Add jsonnet to language list
Browse files Browse the repository at this point in the history
  • Loading branch information
arlyon committed Oct 5, 2020
1 parent d7c5485 commit 31700cd
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
6 changes: 6 additions & 0 deletions languages.json
Original file line number Diff line number Diff line change
Expand Up @@ -623,6 +623,12 @@
"mime": ["application/json", "application/manifest+json"],
"extensions": ["json"]
},
"Jsonnet": {
"line_comment": ["//", "#"],
"multi_line_comments": [["/*", "*/"]],
"quotes": [["\\\"", "\\\""], ["'", "'"]],
"extensions": ["jsonnet", "libsonnet"]
},
"Jsx": {
"name": "JSX",
"line_comment": ["//"],
Expand Down
13 changes: 13 additions & 0 deletions tests/data/jsonnet.jsonnet
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
// 13 lines 7 code 4 comments 2 blanks

/* /**/ */
local func(a, b) = {
// very useful
a: a,
b: b,

# you forgot about me!
c: " /* comment in a string! */ ",
e: ' // in another string ', // another after
f: ' # in a final string ', # comment after though
}

0 comments on commit 31700cd

Please sign in to comment.