Skip to content

Commit

Permalink
Merge pull request #288 from vdrg/solidity
Browse files Browse the repository at this point in the history
Add support for Solidity
  • Loading branch information
boyter committed Sep 27, 2021
2 parents dc3b05b + 574283a commit a190806
Show file tree
Hide file tree
Showing 3 changed files with 50 additions and 13 deletions.
1 change: 1 addition & 0 deletions LANGUAGES.md
Expand Up @@ -198,6 +198,7 @@ Sieve (sieve)
SKILL (il)
Smarty Template (tpl)
Softbridge Basic (sbl)
Solidity (sol)
SPDX (spdx)
Specman e (e)
Spice Netlist (ckt)
Expand Down
60 changes: 48 additions & 12 deletions languages.json
Expand Up @@ -23,7 +23,7 @@
"multi_line": [],
"quotes": []
},
"APL": {
"APL": {
"complexitychecks": [
":For ",
":If ",
Expand Down Expand Up @@ -5674,6 +5674,43 @@
}
]
},
"Solidity": {
"complexitychecks": [
"for ",
"for(",
"if ",
"if(",
"switch ",
"while ",
"else ",
"|| ",
"&& ",
"!= ",
"== ",
"assembly ",
"assembly{",
"unchecked ",
"unchecked{"
],
"extensions": [
"sol"
],
"line_comment": [
"//"
],
"multi_line": [
[
"/*",
"*/"
]
],
"quotes": [
{
"end": "\"",
"start": "\""
}
]
},
"Specman e": {
"complexitychecks": [
"for ",
Expand Down Expand Up @@ -6736,15 +6773,16 @@
"gvimrc"
],
"filenames": [
"_vimrc",
".vimrc",
"_gvimrc",
".gvimrc",
"vimrc",
"gvimrc"
"_vimrc",
".vimrc",
"_gvimrc",
".gvimrc",
"vimrc",
"gvimrc"
],
"line_comment": [
"\"", "#"
"\"",
"#"
],
"multi_line": [],
"quotes": [
Expand Down Expand Up @@ -7060,10 +7098,8 @@
"extensions": [
"yarn"
],
"line_comment": [
],
"quotes": [
]
"line_comment": [],
"quotes": []
},
"YAML": {
"complexitychecks": [],
Expand Down
2 changes: 1 addition & 1 deletion processor/constants.go

Large diffs are not rendered by default.

0 comments on commit a190806

Please sign in to comment.