Skip to content

Commit 574283a

Browse files
committed
Add support for Solidity
1 parent dc3b05b commit 574283a

File tree

3 files changed

+50
-13
lines changed

3 files changed

+50
-13
lines changed

LANGUAGES.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -198,6 +198,7 @@ Sieve (sieve)
198198
SKILL (il)
199199
Smarty Template (tpl)
200200
Softbridge Basic (sbl)
201+
Solidity (sol)
201202
SPDX (spdx)
202203
Specman e (e)
203204
Spice Netlist (ckt)

languages.json

Lines changed: 48 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
"multi_line": [],
2424
"quotes": []
2525
},
26-
"APL": {
26+
"APL": {
2727
"complexitychecks": [
2828
":For ",
2929
":If ",
@@ -5674,6 +5674,43 @@
56745674
}
56755675
]
56765676
},
5677+
"Solidity": {
5678+
"complexitychecks": [
5679+
"for ",
5680+
"for(",
5681+
"if ",
5682+
"if(",
5683+
"switch ",
5684+
"while ",
5685+
"else ",
5686+
"|| ",
5687+
"&& ",
5688+
"!= ",
5689+
"== ",
5690+
"assembly ",
5691+
"assembly{",
5692+
"unchecked ",
5693+
"unchecked{"
5694+
],
5695+
"extensions": [
5696+
"sol"
5697+
],
5698+
"line_comment": [
5699+
"//"
5700+
],
5701+
"multi_line": [
5702+
[
5703+
"/*",
5704+
"*/"
5705+
]
5706+
],
5707+
"quotes": [
5708+
{
5709+
"end": "\"",
5710+
"start": "\""
5711+
}
5712+
]
5713+
},
56775714
"Specman e": {
56785715
"complexitychecks": [
56795716
"for ",
@@ -6736,15 +6773,16 @@
67366773
"gvimrc"
67376774
],
67386775
"filenames": [
6739-
"_vimrc",
6740-
".vimrc",
6741-
"_gvimrc",
6742-
".gvimrc",
6743-
"vimrc",
6744-
"gvimrc"
6776+
"_vimrc",
6777+
".vimrc",
6778+
"_gvimrc",
6779+
".gvimrc",
6780+
"vimrc",
6781+
"gvimrc"
67456782
],
67466783
"line_comment": [
6747-
"\"", "#"
6784+
"\"",
6785+
"#"
67486786
],
67496787
"multi_line": [],
67506788
"quotes": [
@@ -7060,10 +7098,8 @@
70607098
"extensions": [
70617099
"yarn"
70627100
],
7063-
"line_comment": [
7064-
],
7065-
"quotes": [
7066-
]
7101+
"line_comment": [],
7102+
"quotes": []
70677103
},
70687104
"YAML": {
70697105
"complexitychecks": [],

processor/constants.go

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

0 commit comments

Comments
 (0)