Skip to content

Commit 2687ad5

Browse files
authored
Update Vala's language information (#567)
1 parent d50c980 commit 2687ad5

File tree

5 files changed

+48
-14
lines changed

5 files changed

+48
-14
lines changed

SCC-OUTPUT-REPORT.html

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
<th>447</th>
1919
<th>7674</th>
2020
<th>1413</th>
21-
<th>255608</th>
21+
<th>255732</th>
2222
<th>4127</th>
2323
</tr><tr>
2424
<td>processor/workers_test.go</td>
@@ -240,16 +240,6 @@
240240
<td>0</td>
241241
<td>2209</td>
242242
<td>35</td>
243-
</tr><tr>
244-
<td>processor/bloom.go</td>
245-
<td></td>
246-
<td>37</td>
247-
<td>7</td>
248-
<td>12</td>
249-
<td>18</td>
250-
<td>2</td>
251-
<td>1062</td>
252-
<td>29</td>
253243
</tr><tr>
254244
<td>processor/cocomo_test.go</td>
255245
<td></td>
@@ -260,6 +250,16 @@
260250
<td>6</td>
261251
<td>686</td>
262252
<td>23</td>
253+
</tr><tr>
254+
<td>processor/bloom.go</td>
255+
<td></td>
256+
<td>37</td>
257+
<td>7</td>
258+
<td>12</td>
259+
<td>18</td>
260+
<td>2</td>
261+
<td>1062</td>
262+
<td>29</td>
263263
</tr><tr>
264264
<td>processor/helpers_test.go</td>
265265
<td></td>
@@ -288,7 +288,7 @@
288288
<td>1</td>
289289
<td>4</td>
290290
<td>0</td>
291-
<td>23035</td>
291+
<td>23159</td>
292292
<td>6</td>
293293
</tr></tbody>
294294
<tfoot><tr>
@@ -299,7 +299,7 @@
299299
<th>447</th>
300300
<th>7674</th>
301301
<th>1413</th>
302-
<th>255608</th>
302+
<th>255732</th>
303303
<th>4127</th>
304304
</tr>
305305
<tr>

examples/language/vala.vala

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
// test for vala
2+
3+
class Demo.Demo : GLib.Object {
4+
public static int main(string[] args) {
5+
int[] arr = {1, 2, 3, 4, 5, 6, 7, 8, 9};
6+
foreach (var i in arr) {
7+
foreach (var j in arr[0:i]) {
8+
var n = i * j;
9+
stdout.printf(@"$j * $i = $n ");
10+
}
11+
stdout.printf("\n");
12+
}
13+
stdout.printf("""
14+
Test for "verbatim strings".
15+
\r \n \a \b
16+
""");
17+
stdout.printf("\n");
18+
return 0;
19+
}
20+
}

languages.json

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6903,10 +6903,14 @@
69036903
"complexitychecks": [
69046904
"for ",
69056905
"for(",
6906+
"foreach ",
6907+
"foreach(",
69066908
"if ",
69076909
"if(",
69086910
"switch ",
6911+
"switch(",
69096912
"while ",
6913+
"while(",
69106914
"else ",
69116915
"|| ",
69126916
"&& ",
@@ -6920,6 +6924,15 @@
69206924
{
69216925
"end": "\"",
69226926
"start": "\""
6927+
},
6928+
{
6929+
"end": "\"",
6930+
"start": "@\""
6931+
},
6932+
{
6933+
"ignoreEscape": true,
6934+
"end": "\"\"\"",
6935+
"start": "\"\"\""
69236936
}
69246937
]
69256938
},

0 commit comments

Comments
 (0)