Skip to content

Commit 3237c22

Browse files
committed
add in ini file support for #358
1 parent ab483bb commit 3237c22

File tree

6 files changed

+50
-19
lines changed

6 files changed

+50
-19
lines changed

LANGUAGES.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,7 @@ HTML (html,htm)
111111
IDL (idl,webidl,widl)
112112
Idris (idr,lidr)
113113
ignore (.ignore)
114+
INI (ini)
114115
Intel HEX (ihex)
115116
Isabelle (thy)
116117
Jade (jade)

SCC-OUTPUT-REPORT.html

Lines changed: 26 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
<th>443</th>
1818
<th>7286</th>
1919
<th>1506</th>
20-
<th>371753</th>
20+
<th>372001</th>
2121
</tr><tr>
2222
<th>Java</th>
2323
<th>24</th>
@@ -39,12 +39,12 @@
3939
</tr><tr>
4040
<th>Markdown</th>
4141
<th>11</th>
42-
<th>1429</th>
42+
<th>1430</th>
4343
<th>340</th>
4444
<th>0</th>
45-
<th>1089</th>
45+
<th>1090</th>
4646
<th>0</th>
47-
<th>57872</th>
47+
<th>57882</th>
4848
</tr><tr>
4949
<th>Python</th>
5050
<th>10</th>
@@ -98,7 +98,7 @@
9898
<th>91</th>
9999
<th>917</th>
100100
<th>104</th>
101-
<th>41366</th>
101+
<th>41373</th>
102102
</tr><tr>
103103
<th>C#</th>
104104
<th>2</th>
@@ -417,21 +417,30 @@
417417
</tr><tr>
418418
<th>HTML</th>
419419
<th>1</th>
420-
<th>671</th>
420+
<th>680</th>
421+
<th>0</th>
421422
<th>0</th>
423+
<th>680</th>
422424
<th>0</th>
423-
<th>671</th>
425+
<th>9921</th>
426+
</tr><tr>
427+
<th>INI</th>
428+
<th>1</th>
429+
<th>10</th>
430+
<th>1</th>
431+
<th>2</th>
432+
<th>7</th>
424433
<th>0</th>
425-
<th>9795</th>
434+
<th>226</th>
426435
</tr><tr>
427436
<th>JSON</th>
428437
<th>1</th>
429-
<th>8034</th>
438+
<th>8045</th>
430439
<th>0</th>
431440
<th>0</th>
432-
<th>8034</th>
441+
<th>8045</th>
433442
<th>0</th>
434-
<th>112543</th>
443+
<th>112687</th>
435444
</tr><tr>
436445
<th>Korn Shell</th>
437446
<th>1</th>
@@ -669,12 +678,12 @@
669678
</tr></tbody>
670679
<tfoot><tr>
671680
<th>Total</th>
672-
<th>186</th>
673-
<th>30056</th>
674-
<th>3377</th>
675-
<th>1931</th>
676-
<th>24748</th>
681+
<th>187</th>
682+
<th>30087</th>
683+
<th>3378</th>
684+
<th>1933</th>
685+
<th>24776</th>
677686
<th>2662</th>
678-
<th>1912480</th>
687+
<th>1913241</th>
679688
</tr></tfoot>
680689
</table></body></html>

examples/language/ini.ini

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
; last modified 1 April 2001 by John Doe
2+
[owner]
3+
name = John Doe
4+
organization = Acme Widgets Inc.
5+
6+
[database]
7+
; use IP address in case network name resolution is not working
8+
server = 192.0.2.62
9+
port = 143
10+
file = "payroll.dat"

languages.json

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2510,6 +2510,17 @@
25102510
}
25112511
]
25122512
},
2513+
"INI": {
2514+
"extensions": [
2515+
"ini"
2516+
],
2517+
"line_comment": [
2518+
"#",
2519+
";"
2520+
],
2521+
"multi_line": [],
2522+
"quotes": []
2523+
},
25132524
"GDScript": {
25142525
"complexitychecks": [
25152526
"for ",

processor/constants.go

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

test-all.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -883,7 +883,7 @@ else
883883
fi
884884

885885
# 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 '
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 '
887887
do
888888
if ./scc "examples/language/" | grep -q "$i "; then
889889
echo -e "${GREEN}PASSED $i Language Check"

0 commit comments

Comments
 (0)