Skip to content

Commit

Permalink
Add support for Picat (.pi), a descendant of Prolog with similar syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
DestyNova committed Dec 1, 2023
1 parent c3692f3 commit a04ab7c
Show file tree
Hide file tree
Showing 4 changed files with 58 additions and 22 deletions.
1 change: 1 addition & 0 deletions LANGUAGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,7 @@ Pascal (pas)
Patch (patch)
Perl (pl,pm)
PHP (php)
Picat (pi)
PKGBUILD (pkgbuild)
PL/SQL (fnc,pkb,pks,prc,trg,vw)
Plain Text (text,txt)
Expand Down
40 changes: 20 additions & 20 deletions SCC-OUTPUT-REPORT.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
<th>465</th>
<th>7810</th>
<th>1593</th>
<th>396041</th>
<th>396656</th>
</tr><tr>
<th>Java</th>
<th>24</th>
Expand All @@ -39,12 +39,12 @@
</tr><tr>
<th>Markdown</th>
<th>11</th>
<th>1471</th>
<th>1472</th>
<th>356</th>
<th>0</th>
<th>1115</th>
<th>1116</th>
<th>0</th>
<th>59737</th>
<th>59748</th>
</tr><tr>
<th>Python</th>
<th>11</th>
Expand All @@ -57,12 +57,12 @@
</tr><tr>
<th>YAML</th>
<th>7</th>
<th>284</th>
<th>51</th>
<th>25</th>
<th>208</th>
<th>297</th>
<th>53</th>
<th>31</th>
<th>213</th>
<th>0</th>
<th>7917</th>
<th>8470</th>
</tr><tr>
<th>CSS</th>
<th>5</th>
Expand Down Expand Up @@ -444,12 +444,12 @@
</tr><tr>
<th>HTML</th>
<th>1</th>
<th>725</th>
<th>734</th>
<th>0</th>
<th>0</th>
<th>725</th>
<th>734</th>
<th>0</th>
<th>10530</th>
<th>10653</th>
</tr><tr>
<th>Hare</th>
<th>1</th>
Expand All @@ -471,12 +471,12 @@
</tr><tr>
<th>JSON</th>
<th>1</th>
<th>8614</th>
<th>8649</th>
<th>8</th>
<th>0</th>
<th>8606</th>
<th>8641</th>
<th>0</th>
<th>120730</th>
<th>121199</th>
</tr><tr>
<th>Korn Shell</th>
<th>1</th>
Expand Down Expand Up @@ -724,11 +724,11 @@
<tfoot><tr>
<th>Total</th>
<th>199</th>
<th>31771</th>
<th>3548</th>
<th>2026</th>
<th>26197</th>
<th>31829</th>
<th>3550</th>
<th>2032</th>
<th>26247</th>
<th>2786</th>
<th>1958259</th>
<th>1960030</th>
</tr></tfoot>
</table></body></html>
35 changes: 35 additions & 0 deletions languages.json
Original file line number Diff line number Diff line change
Expand Up @@ -5313,6 +5313,41 @@
"perl5"
]
},
"Picat": {
"complexitychecks": [
"do ",
"foreach ",
"foreach(",
"if ",
"if(",
"switch ",
"while ",
"while(",
"else ",
"|| ",
"&& ",
"!= ",
"== "
],
"extensions": [
"pi"
],
"line_comment": [
"%"
],
"multi_line": [
[
"/*",
"*/"
]
],
"quotes": [
{
"end": "\"",
"start": "\""
}
]
},
"Plain Text": {
"complexitychecks": [],
"extensions": [
Expand Down
4 changes: 2 additions & 2 deletions processor/constants.go

Large diffs are not rendered by default.

0 comments on commit a04ab7c

Please sign in to comment.