File tree Expand file tree Collapse file tree 5 files changed +71
-2
lines changed Expand file tree Collapse file tree 5 files changed +71
-2
lines changed Original file line number Diff line number Diff line change @@ -103,6 +103,7 @@ HAML (haml)
103
103
Hamlet (hamlet)
104
104
Handlebars (hbs,handlebars)
105
105
Happy (y,ly)
106
+ Hare (ha)
106
107
Haskell (hs)
107
108
Haxe (hx)
108
109
HEX (hex)
Original file line number Diff line number Diff line change
1
+ use fmt;
2
+ use strings;
3
+
4
+ export type error = !str;
5
+
6
+ type example = struct {
7
+ number: i64,
8
+ error: error,
9
+ };
10
+
11
+ fn function(a: i32, b: i32) i32 = a + b;
12
+
13
+ export fn main() void = {
14
+ for (true) {
15
+ break;
16
+ };
17
+
18
+ const string = "A string"; // a comment
19
+ const another_string = `aaa`;
20
+ let iter = strings::iter(string);
21
+
22
+ let r = match (strings::next(&iter)) {
23
+ case void => return;
24
+ case let r: rune =>
25
+ // comment
26
+ yield r;
27
+ };
28
+
29
+ switch (r) {
30
+ case 'a' =>
31
+ abort();
32
+ case =>
33
+ if (r != 'd') fmt::println("not d!")! else fmt::println("d!")!;
34
+ };
35
+
36
+ for (let i = 0z; i <= 10; i += 1) {
37
+ fmt::print(i, ' ')!;
38
+ };
39
+ };
Original file line number Diff line number Diff line change 3097
3097
"multi_line" : [],
3098
3098
"quotes" : []
3099
3099
},
3100
+ "Hare" : {
3101
+ "complexitychecks" : [
3102
+ " for " ,
3103
+ " if " ,
3104
+ " else " ,
3105
+ " match " ,
3106
+ " switch " ,
3107
+ " || " ,
3108
+ " && " ,
3109
+ " != " ,
3110
+ " == "
3111
+ ],
3112
+ "extensions" : [
3113
+ " ha"
3114
+ ],
3115
+ "line_comment" : [
3116
+ " //"
3117
+ ],
3118
+ "quotes" : [
3119
+ {
3120
+ "end" : " \" " ,
3121
+ "start" : " \" "
3122
+ },
3123
+ {
3124
+ "end" : " `" ,
3125
+ "start" : " `"
3126
+ }
3127
+ ]
3128
+ },
3100
3129
"Haskell" : {
3101
3130
"complexitychecks" : [
3102
3131
" for " ,
Load Diff Large diffs are not rendered by default.
Original file line number Diff line number Diff line change 883
883
fi
884
884
885
885
# Try out specific languages
886
- for i in ' Bosque ' ' Flow9 ' ' Bitbucket Pipeline ' ' Docker ignore ' ' Q# ' ' Futhark ' ' Alloy ' ' Wren ' ' Monkey C ' ' Alchemist ' ' Luna ' ' ignore ' ' XML Schema ' ' Web Services' ' Go ' ' Java ' ' Boo ' ' License ' ' BASH ' ' C Shell ' ' Korn Shell ' ' Makefile ' ' Shell ' ' Zsh ' ' Rakefile ' ' Gemfile ' ' Dockerfile ' ' Yarn ' ' Sieve ' ' F# ' ' Elm ' ' Terraform ' ' Clojure ' ' C# ' ' LLVM IR ' ' HAML ' ' FXML ' ' DM ' ' Nushell ' ' Racket ' ' DOT ' ' YAML ' ' Teal ' ' FSL ' ' INI '
886
+ for i in ' Bosque ' ' Flow9 ' ' Bitbucket Pipeline ' ' Docker ignore ' ' Q# ' ' Futhark ' ' Alloy ' ' Wren ' ' Monkey C ' ' Alchemist ' ' Luna ' ' ignore ' ' XML Schema ' ' Web Services' ' Go ' ' Java ' ' Boo ' ' License ' ' BASH ' ' C Shell ' ' Korn Shell ' ' Makefile ' ' Shell ' ' Zsh ' ' Rakefile ' ' Gemfile ' ' Dockerfile ' ' Yarn ' ' Sieve ' ' F# ' ' Elm ' ' Terraform ' ' Clojure ' ' C# ' ' LLVM IR ' ' HAML ' ' FXML ' ' DM ' ' Nushell ' ' Racket ' ' DOT ' ' YAML ' ' Teal ' ' FSL ' ' INI ' ' Hare '
887
887
do
888
888
if ./scc " examples/language/" | grep -q " $i " ; then
889
889
echo -e " ${GREEN} PASSED $i Language Check"
You can’t perform that action at this time.
0 commit comments