Skip to content

Commit

Permalink
add in ini file support for #358
Browse files Browse the repository at this point in the history
  • Loading branch information
boyter committed Dec 12, 2022
1 parent ab483bb commit 3237c22
Show file tree
Hide file tree
Showing 6 changed files with 50 additions and 19 deletions.
1 change: 1 addition & 0 deletions LANGUAGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,7 @@ HTML (html,htm)
IDL (idl,webidl,widl)
Idris (idr,lidr)
ignore (.ignore)
INI (ini)
Intel HEX (ihex)
Isabelle (thy)
Jade (jade)
Expand Down
43 changes: 26 additions & 17 deletions SCC-OUTPUT-REPORT.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
<th>443</th>
<th>7286</th>
<th>1506</th>
<th>371753</th>
<th>372001</th>
</tr><tr>
<th>Java</th>
<th>24</th>
Expand All @@ -39,12 +39,12 @@
</tr><tr>
<th>Markdown</th>
<th>11</th>
<th>1429</th>
<th>1430</th>
<th>340</th>
<th>0</th>
<th>1089</th>
<th>1090</th>
<th>0</th>
<th>57872</th>
<th>57882</th>
</tr><tr>
<th>Python</th>
<th>10</th>
Expand Down Expand Up @@ -98,7 +98,7 @@
<th>91</th>
<th>917</th>
<th>104</th>
<th>41366</th>
<th>41373</th>
</tr><tr>
<th>C#</th>
<th>2</th>
Expand Down Expand Up @@ -417,21 +417,30 @@
</tr><tr>
<th>HTML</th>
<th>1</th>
<th>671</th>
<th>680</th>
<th>0</th>
<th>0</th>
<th>680</th>
<th>0</th>
<th>671</th>
<th>9921</th>
</tr><tr>
<th>INI</th>
<th>1</th>
<th>10</th>
<th>1</th>
<th>2</th>
<th>7</th>
<th>0</th>
<th>9795</th>
<th>226</th>
</tr><tr>
<th>JSON</th>
<th>1</th>
<th>8034</th>
<th>8045</th>
<th>0</th>
<th>0</th>
<th>8034</th>
<th>8045</th>
<th>0</th>
<th>112543</th>
<th>112687</th>
</tr><tr>
<th>Korn Shell</th>
<th>1</th>
Expand Down Expand Up @@ -669,12 +678,12 @@
</tr></tbody>
<tfoot><tr>
<th>Total</th>
<th>186</th>
<th>30056</th>
<th>3377</th>
<th>1931</th>
<th>24748</th>
<th>187</th>
<th>30087</th>
<th>3378</th>
<th>1933</th>
<th>24776</th>
<th>2662</th>
<th>1912480</th>
<th>1913241</th>
</tr></tfoot>
</table></body></html>
10 changes: 10 additions & 0 deletions examples/language/ini.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
; last modified 1 April 2001 by John Doe
[owner]
name = John Doe
organization = Acme Widgets Inc.

[database]
; use IP address in case network name resolution is not working
server = 192.0.2.62
port = 143
file = "payroll.dat"
11 changes: 11 additions & 0 deletions languages.json
Original file line number Diff line number Diff line change
Expand Up @@ -2510,6 +2510,17 @@
}
]
},
"INI": {
"extensions": [
"ini"
],
"line_comment": [
"#",
";"
],
"multi_line": [],
"quotes": []
},
"GDScript": {
"complexitychecks": [
"for ",
Expand Down
2 changes: 1 addition & 1 deletion processor/constants.go

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion test-all.sh
Original file line number Diff line number Diff line change
Expand Up @@ -883,7 +883,7 @@ else
fi

# Try out specific languages
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 '
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 '
do
if ./scc "examples/language/" | grep -q "$i "; then
echo -e "${GREEN}PASSED $i Language Check"
Expand Down

0 comments on commit 3237c22

Please sign in to comment.