Skip to content

Commit

Permalink
Add the ZoKrates language (#1035)
Browse files Browse the repository at this point in the history
  • Loading branch information
alex-ozdemir authored May 2, 2024
1 parent 1224e98 commit 3ac268d
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -552,6 +552,7 @@ Xtend
Yaml
ZenCode
Zig
ZoKrates
Zsh
```

Expand Down
6 changes: 6 additions & 0 deletions languages.json
Original file line number Diff line number Diff line change
Expand Up @@ -1744,6 +1744,12 @@
"quotes": [["\\\"", "\\\""]],
"extensions": ["zig"]
},
"Zokrates": {
"name": "ZoKrates",
"line_comment": ["//"],
"multi_line_comments": [["/*", "*/"]],
"extensions": ["zok"]
},
"Zsh": {
"shebangs": ["#!/bin/zsh"],
"line_comment": ["#"],
Expand Down
11 changes: 11 additions & 0 deletions tests/data/zokrates.zok
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
// 11 lines 3 code 6 comments 2 blanks

/*
This is a multi-line comment
written in more than just one line.
*/

def main() -> field {
// an inline comment
return 42; // on a line.
}

0 comments on commit 3ac268d

Please sign in to comment.