Skip to content

Commit 4089f8a

Browse files
authored
Tera support (#523)
1 parent 2715b69 commit 4089f8a

File tree

6 files changed

+41
-14
lines changed

6 files changed

+41
-14
lines changed

LANGUAGES.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -269,6 +269,7 @@ TCL (tcl)
269269
Teal (teal)
270270
Templ (templ)
271271
TemplateToolkit (tt,tt2)
272+
Tera (tera)
272273
Terraform (tf,tf.json)
273274
TeX (tex,sty)
274275
Textile (textile)

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>7659</th>
2020
<th>1529</th>
21-
<th>254048</th>
21+
<th>254192</th>
2222
<th>4067</th>
2323
</tr><tr>
2424
<td>processor/formatters.go</td>
@@ -240,16 +240,6 @@
240240
<td>0</td>
241241
<td>2209</td>
242242
<td>35</td>
243-
</tr><tr>
244-
<td>processor/cocomo_test.go</td>
245-
<td></td>
246-
<td>37</td>
247-
<td>8</td>
248-
<td>4</td>
249-
<td>25</td>
250-
<td>6</td>
251-
<td>686</td>
252-
<td>23</td>
253243
</tr><tr>
254244
<td>processor/bloom.go</td>
255245
<td></td>
@@ -260,6 +250,16 @@
260250
<td>2</td>
261251
<td>1062</td>
262252
<td>29</td>
253+
</tr><tr>
254+
<td>processor/cocomo_test.go</td>
255+
<td></td>
256+
<td>37</td>
257+
<td>8</td>
258+
<td>4</td>
259+
<td>25</td>
260+
<td>6</td>
261+
<td>686</td>
262+
<td>23</td>
263263
</tr><tr>
264264
<td>processor/helpers_test.go</td>
265265
<td></td>
@@ -288,7 +288,7 @@
288288
<td>0</td>
289289
<td>4</td>
290290
<td>0</td>
291-
<td>21709</td>
291+
<td>21853</td>
292292
<td>5</td>
293293
</tr></tbody>
294294
<tfoot><tr>
@@ -299,7 +299,7 @@
299299
<th>447</th>
300300
<th>7659</th>
301301
<th>1529</th>
302-
<th>254048</th>
302+
<th>254192</th>
303303
<th>4067</th>
304304
</tr>
305305
<tr>

examples/language/tera.tera

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{% set map = section.pages | group_by(attribute="year") %}
2+
{% set_global years = [] %}
3+
{% for year, ignored in map %}
4+
{% set_global years = years | concat(with=year) %}
5+
{% endfor %}
6+
{% for year in years | reverse %}
7+
{% set posts = map[year] %}
8+
{% endfor %}

languages.json

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6201,6 +6201,23 @@
62016201
"multi_line": [["[%#", "%]"]],
62026202
"quotes": []
62036203
},
6204+
"Tera": {
6205+
"complexitychecks": [
6206+
"{% include ",
6207+
"{% macro ",
6208+
"{% block ",
6209+
"{% extends ",
6210+
"{% for ",
6211+
"{% set ",
6212+
"{% if ",
6213+
"{% elif ",
6214+
"{% else "
6215+
],
6216+
"extensions": ["tera"],
6217+
"line_comment": [],
6218+
"multi_line": [["<!--", "-->"], ["{#", "#}"]],
6219+
"quotes": []
6220+
},
62046221
"Terraform": {
62056222
"complexitychecks": [
62066223
"count",

processor/constants.go

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

test-all.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -980,6 +980,7 @@ specificLanguages=(
980980
'Snakemake '
981981
'Stan '
982982
'Teal '
983+
'Tera '
983984
'Templ '
984985
'Terraform '
985986
'TTCN-3 '

0 commit comments

Comments
 (0)